コード例 #1
0
 /// <summary>
 /// Handles the event when the character attack is ended
 /// </summary>
 public void Handle(OnAttackToggled @event)
 {
     if ([email protected])
     {
         _combatStateMachineContext.isAttackingEnded = true;
     }
 }
コード例 #2
0
 /// <summary>
 /// Handles the event when character attack is toggled (attack is started or ended)
 /// </summary>
 public void Handle(OnAttackToggled @event)
 {
     if (@event.Enable)
     {
         _canSwitch = false;
     }
     else
     {
         _canSwitch = true;
     }
 }