public void GoBack() { KingPigFeedButton.LastDessertCount = KingPigFeedButton.CurrentDessertCount(); if ((Singleton <GameManager> .Instance.GetPrevGameState() == GameManager.GameState.LevelSelection || Singleton <GameManager> .Instance.GetPrevGameState() == GameManager.GameState.Level) && Singleton <GameManager> .Instance.CurrentEpisode != string.Empty) { Singleton <GameManager> .Instance.LoadLevelSelection(Singleton <GameManager> .Instance.CurrentEpisode, true); } else { Singleton <GameManager> .Instance.LoadEpisodeSelection(true); } }
private void CheckWiggle() { bool @bool = GameProgress.GetBool("ChiefPigExploded", false, GameProgress.Location.Local, null); bool bool2 = GameProgress.GetBool("Kingpig_Visited", false, GameProgress.Location.Local, null); if (!Singleton <BuildCustomizationLoader> .Instance.IsChina) { base.gameObject.SetActive(@bool); } if (!bool2 || (this.HasDesserts() && KingPigFeedButton.LastDessertCount != KingPigFeedButton.CurrentDessertCount())) { this.Wiggle(); } }