public void Handle(FinishAttackEvent message) { if (this.ActionGroup.Type == CharacterActionType.Ability) { var active = this.CharacterActionList.Active as AnimatedAbility.AnimatedAbility; if (active != null && active.Name == message.FinishedAttack.Name) { this.CharacterActionList.Active = default(T); } } }
public void FinishAttack() { FinishAttackEvent?.Invoke(); }