// Update is called once per frame void Update() { if (boardController.player_turn && !dialogCtrl.isShown && goals.Get(GoalType.HUMANITY) >= goals.maxHumanity) { boardController.Player_win(); boardController.Game_end(); } else if (boardController.player_turn && !dialogCtrl.isShown && goals.Get(GoalType.EARTH) <= 0) { boardController.Player_lose(false); } }