public void GameOver() { this.manager.GameOver(); // this.gameObject.SetActive(false); CancelInvoke("RegisterFlip"); switch (this.mode) { case GameplayMode.Runner: if (PrefsManager.GetCurrentBottleFlipsCount() > PrefsManager.GetBestBottleFlipCount()) { PrefsManager.SetBestBottleFlipCount(PrefsManager.GetCurrentBottleFlipsCount()); } break; case GameplayMode.StaticDump: if (PrefsManager.GetCurrentBottleDumps() > PrefsManager.GetBestBottleDumpCount()) { PrefsManager.SetBestBottleDumpCount(PrefsManager.GetCurrentBottleDumps()); Social.ReportScore((int)(PrefsManager.GetBestBottleDumpCount()), "CgkIkO25l88cEAIQAQ", (bool success) => { }); } this.enabled = false; Debug.Log("gaaaame"); break; } }