Exemple #1
0
 public void CharacterState_Unmount(System.Action unarm, float unarmParam)
 {
     Core.CharacterState.ICharacterState state = entity.stateInterface.State;
     state.InterruptAction();
     state.ForceFinishGrenadeThrow();
     state.Unarm(unarm, unarmParam);
 }
Exemple #2
0
 public void CharacterState_Interrupt()
 {
     Core.CharacterState.ICharacterState state = entity.stateInterface.State;
     state.InterruptAction();
     state.InterruptSwitchWeapon();
     PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, entity.gamePlay);
     state.ForceBreakSpecialReload(null);
     state.ForceFinishGrenadeThrow();
     if (entity.hasThrowingAction)
     {
         entity.throwingAction.ActionInfo.ClearState();
     }
 }