public static void TriggerQuitGame() { SaveGame.Instance.worldGen.Reset(); ThreadedHttps <KleiMetrics> .Instance.EndGame(); LoadScreen.ForceStopGame(); App.LoadScene("frontend"); }
private void OnLoadConfirm() { LoadingOverlay.Load(delegate { LoadScreen.ForceStopGame(); Deactivate(); App.LoadScene("frontend"); }); }
private void Load(string filename) { if ((UnityEngine.Object)Game.Instance != (UnityEngine.Object)null) { LoadScreen.ForceStopGame(); } SaveLoader.SetActiveSaveFilePath(filename); App.LoadScene("backend"); Deactivate(); }
protected override void OnPrefabInit() { base.IsStarterMinion = true; base.OnPrefabInit(); if (MusicManager.instance.SongIsPlaying("Music_FrontEnd")) { MusicManager.instance.SetSongParameter("Music_FrontEnd", "songSection", 2f, true); } GameObject parent = GameObject.Find("ScreenSpaceOverlayCanvas"); GameObject gameObject = Util.KInstantiateUI(wattsonMessagePrefab.gameObject, parent, false); gameObject.name = "WattsonMessage"; gameObject.SetActive(false); Game.Instance.Subscribe(-1992507039, OnBaseAlreadyCreated); backButton.onClick += delegate { LoadScreen.ForceStopGame(); SaveGame.Instance.worldGen.Reset(); App.LoadScene("frontend"); }; InitializeContainers(); }