public virtual void StartAttack() { _isAttacking = true; _activeSquad = GetNextSquad(); _activeSquad.Select(); _onStartAttack.Invoke(); }
protected virtual void EndAttack() { _isAttacking = false; _activeSquad.UnSelect(); _activeSquad = null; _onEndAttack.Invoke(); }
private void CastTargetableSkill(SquadBehaviour target) { ActiveSquad.InitializeSkill(); var targetableSkill = ActiveSquad.Unit.Skill as ITargetable <SquadBehaviour>; if (targetableSkill != null) { targetableSkill.Target = target; ActiveSquad.Unit.Skill.Cast(); } }