Esempio n. 1
0
 public void SpawnUnit(DataUnit data)
 {
     if (dataPlayer)
     {
         coundowns[data]        = data.stats.spawnCountdown;
         dataPlayer.mana.Value -= data.stats.manaCost;
         ManagerUnits.Spawn(data, dataPlayer.side);
         Think();
     }
 }
Esempio n. 2
0
        private void OnUnitButton(UICallBack callBack)
        {
            var dataUnit = callBack.data as DataUnit;

            if (dataUnit)
            {
                dataPlayer.mana.Value -= dataUnit.stats.manaCost;
                ManagerUnits.Spawn(dataUnit, dataPlayer.side);
            }
        }