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