示例#1
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;
        }
    }
示例#2
0
    void GrabDaggers(CharacterAnimationEventReceiver.WhichDagger which)
    {
        switch (which)
        {
        case CharacterAnimationEventReceiver.WhichDagger.Left: daggerLeft.Grab(rightHand); break;

        case CharacterAnimationEventReceiver.WhichDagger.Right: daggerRight.Grab(leftHand); break;

        case CharacterAnimationEventReceiver.WhichDagger.Both:
            daggerLeft.Grab(leftHand);
            daggerRight.Grab(rightHand);
            break;
        }
    }