Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     UpdateResourceMeters();
     playerUnityCapacityText.text = playerBattleManagerScript.spawnedUnitsCapacityCount.ToString() + " / " + ShipStatsUpgradesStatic.GetShipUnitCapacity().ToString();
 }
 private void DisableOrEnableButton()
 {
     if (playerResourceAmountMyResource >= myUnitCost && playerBattleManagerScript.spawnPodCount >= 1 && playerBattleManagerScript.spawnedUnitsCapacityCount < ShipStatsUpgradesStatic.GetShipUnitCapacity())
     {
         myButton.interactable = true;
     }
     else
     {
         myButton.interactable = false;
     }
 }