void FireOne(Dagger dagger, AnimationState animation) { if (dagger.State == Dagger.DaggerState.Holstered) { animator.SetInteger("State", (int)animation); dagger.WillGrab(); } else { dagger.Action(); } }
void ReleaseDaggers(CharacterAnimationEventReceiver.WhichDagger which) { switch (which) { case CharacterAnimationEventReceiver.WhichDagger.Left: daggerLeft.Action(); break; case CharacterAnimationEventReceiver.WhichDagger.Right: daggerRight.Action(); break; case CharacterAnimationEventReceiver.WhichDagger.Both: daggerLeft.ActionBoth(daggerRight); daggerRight.ActionBoth(daggerLeft); break; } }