Exemple #1
0
 public virtual void StartAttack()
 {
     _isAttacking = true;
     _activeSquad = GetNextSquad();
     _activeSquad.Select();
     _onStartAttack.Invoke();
 }
Exemple #2
0
 protected virtual void EndAttack()
 {
     _isAttacking = false;
     _activeSquad.UnSelect();
     _activeSquad = null;
     _onEndAttack.Invoke();
 }
Exemple #3
0
        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();
            }
        }