void InitializeGame() { turnCount = 0; playerCM.Initialize(); // // TODO initialize method for event deck // eventCM.deck = CardUtility.Shuffle(testEvents); supplyCM.Initialize(); Money = startingMoney; MentalHealth = startingHealth; HourlyWage = startingWage; winScreen.ShowWinScreen(false); loseScreen.ShowLoseScreen(false); StartTurn(); }
public void LoadNextLevel() { if (currentLevel + 1 < nLevels) { SceneManager.LoadScene(currentLevel + 1); } else { winScreen.ShowWinScreen(); } }
private void Update() { if (Money >= MoneyToWin) { _winScreen.ShowWinScreen(MoneyToWin); } else if (Money <= MoneyToLose) { _gameOverScreen.ShowGameOverScreen(); } }
public void ShowWinScreen(string player) { WinScreen.gameObject.SetActive(true); WinScreen.ShowWinScreen(player); }