Esempio n. 1
0
 public void Targeting(Tile tile, float damage, TowerKind towerKind, string tag)
 {
     this.tag     = tag;
     _targetTile  = tile;
     this._damage = damage;
     _towerKind   = towerKind;
     Fire();
 }
Esempio n. 2
0
        public void TargetingSetActive(TowerKind towerKind, bool active)
        {
            int activeNum = active ? 1 : -1;

            targetingReservation[towerKind] += activeNum;
            foreach (var i in targetingReservation)
            {
                if (i.Value > 0)
                {
                    targetingMark[(int)i.Key].SetActive(true);
                }
                else
                {
                    targetingMark[(int)i.Key].SetActive(false);
                }
            }
        }