// Update is called once per frame void Update() { if (_currentPopulation >= popVictoryAmount) { timer += Time.deltaTime; if (timer >= timeToSustain) { gameOverHandler.Victory(); } } else { timer = 0; } if (_currentPopulation <= 0) { gameOverHandler.Death(); } }