Esempio n. 1
0
    public static void TriggerQuitGame()
    {
        SaveGame.Instance.worldGen.Reset();
        ThreadedHttps <KleiMetrics> .Instance.EndGame();

        LoadScreen.ForceStopGame();
        App.LoadScene("frontend");
    }
Esempio n. 2
0
 private void OnLoadConfirm()
 {
     LoadingOverlay.Load(delegate
     {
         LoadScreen.ForceStopGame();
         Deactivate();
         App.LoadScene("frontend");
     });
 }
Esempio n. 3
0
 private void Load(string filename)
 {
     if ((UnityEngine.Object)Game.Instance != (UnityEngine.Object)null)
     {
         LoadScreen.ForceStopGame();
     }
     SaveLoader.SetActiveSaveFilePath(filename);
     App.LoadScene("backend");
     Deactivate();
 }
Esempio n. 4
0
    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();
    }