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