Beispiel #1
0
    public void UnbindAction(WeaponAction action, WeaponEvent pressedAction, WeaponEvent releasedAction)
    {
        switch (action)
        {
        case WeaponAction.Attack:
            AttackPressed  -= pressedAction;
            AttackReleased -= releasedAction;
            break;

        case WeaponAction.Throw:
            ThrowPressed  -= pressedAction;
            ThrowReleased -= releasedAction;
            break;
        }
    }