public void GameOver() { // if(uiManager != null) // uiManager.ShowLabel("Game Over!"); Action <bool> fun = (res) => { ResetGame(); WindowManager.Instance.HideWindow(WindowID.LosePanel); }; WindowManager.Instance.OpenWindow(WindowID.LosePanel, fun); gameOver = true; if (playerController != null) { playerController.gameObject.SetActive(false); playerController.HideWeapon(); } if (enemyController != null) { enemyController.gameObject.SetActive(false); } DestoryAsteroid(); //1111111111 if (AdaptiveDifficultyManager.Instance != null) { AdaptiveDifficultyManager.Instance.SetUserTalent("Lose", 40); } }