private void OnManaButton(UICallBack callBack) { dataPlayer.manaMax += dataPlayer.upgradeMana; managerUI.mana.maxCount = dataPlayer.manaMax; managerUI.mana.upCount = dataPlayer.manaMax + dataPlayer.upgradeMana; dataPlayer.mana.Value = 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); } }