/// <summary> /// Handles the event when the character attack is ended /// </summary> public void Handle(OnAttackToggled @event) { if ([email protected]) { _combatStateMachineContext.isAttackingEnded = true; } }
/// <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; } }