show non affordable
This commit is contained in:
parent
996509de14
commit
323b0ef4c4
|
@ -28,6 +28,16 @@ public class MoneyManager : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// TODO: move to observer patter idgaf rn
|
||||
for (int i = 0; i < MoneyTexts.Length; i++)
|
||||
{
|
||||
float price = towerCollection.Towers[i].price;
|
||||
MoneyTexts[i].color = GameManager.Instance.Balance.Value >= price ? Color.green : Color.red;
|
||||
}
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// Show prices
|
||||
|
|
Loading…
Reference in New Issue