Beispiel #1
0
    public void OnCollectClick()
    {
        int unitCost = unit.GetCollectCost();

        if (gameManager.money >= unitCost)
        {
            gameManager.SpendMoney(unitCost);

            breedingManager.AddGeneticMaterial(unit);
            leftPanel.HideUnitDetailsPopup();
        }
        else
        {
            Debug.Log("Not enough money for " + unitCost);
        }
    }
Beispiel #2
0
 public void OnMouseOff()
 {
     leftPanel.HideUnitDetailsPopup();
 }