Beispiel #1
0
 void FireOne(Dagger dagger, AnimationState animation)
 {
     if (dagger.State == Dagger.DaggerState.Holstered)
     {
         animator.SetInteger("State", (int)animation);
         dagger.WillGrab();
     }
     else
     {
         dagger.Action();
     }
 }
Beispiel #2
0
    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;
        }
    }