public void GameOver() { gameState = GS.Over; timer.PauseTimer(); SoundManager(5); uiManager.GameOverUI(statistics); //economics.PositionOpen = false; // experience += finalScore; Debug.Log("OVERALL SCORE: " + finalScore + " || Cycles: " + time + " || Timer: " + timer.RoundedTimeSecs() + " || TPP: " + topPositionProfit + " || TSP: " + topSessionProfit + "\n EXPERIENCE: " + experience); PlayerDataSaverLoader.SavePlayerData(economics.GetPlayerData()); }
void PreRun() { if (firstRun == true) { mainTutorialPanel.gameObject.SetActive(true); mainTutorialPanel.GetComponent <Tutorial>().RunTutorial(0); gameState = GS.Pause; playerData = new PlayerData(); playerData.deposit = 200f; playerData.quantity = 1; PlayerDataSaverLoader.SavePlayerData(playerData); } }