public void OnInterrupt()
 {
     _playerEntity.stateInterface.State.InterruptAction();
     _playerEntity.stateInterface.State.InterruptSwitchWeapon();
     PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, _playerEntity.gamePlay);
     _playerEntity.stateInterface.State.ForceBreakSpecialReload(null);
     _playerEntity.stateInterface.State.ForceFinishGrenadeThrow();
     if (_playerEntity.hasThrowingAction)
     {
         _playerEntity.throwingAction.ActionInfo.ClearState();
     }
 }
Exemple #2
0
        public void InterruptCharactor()
        {
            var RelatedCharState = playerEntity.stateInterface.State;

            RelatedCharState.InterruptAction();
            RelatedCharState.InterruptSwitchWeapon();
            RelatedCharState.ForceBreakSpecialReload(null);
            RelatedCharState.ForceFinishGrenadeThrow();
            PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, playerEntity.gamePlay);
            if (playerEntity.hasThrowingAction)
            {
                playerEntity.throwingAction.ActionInfo.ClearState();
            }
        }
 private void DoDrawInterrupt()
 {
     PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, _playerEntity.gamePlay);
     _playerEntity.stateInterface.State.InterruptAction();
     _playerEntity.stateInterface.State.ForceFinishGrenadeThrow();
 }