private void OnLevelWasLoaded(int level) { isPaused = false; firstTimeSettingsSliders = true; firstTimeSettingsControls = true; if (!wasLevelBeaten) { if (currentLevelManager) { ResetLevelData(); } currentLevelManager = levels[GetMatchingSceneIndexByName(SceneManager.GetActiveScene().name)]; } if (firstTimeReadIgnore) { firstTimeReadIgnore = false; } else { if (SceneManager.GetActiveScene().name == "Main Menu") { saveManager.ReadSaveData(); } } /* * if (crawlManager) * { * crawlManager.levelIndex = currentCrawlLevel; * } */ }