예제 #1
0
 private void Update()
 {
     if (amountBought < 1 && Time.frameCount % 6 == 0)
     {
         buyButton.interactable = resourcesManager.CheckIfEnoughResource(price);
     }
 }
예제 #2
0
 private void Update()
 {
     if (Time.frameCount % 6 == 0)
     {
         buyButton.interactable = resourcesManager.CheckIfEnoughResource(currentPrice);
     }
 }