Ejemplo n.º 1
0
        public static void StartNewGame(int slot)
        {
            audioManager.Fadeout();
            PersistentEngine g = GameObject.Find("Global").GetComponent <PersistentEngine>();

            savePath = defaultSavePath.Remove(defaultSavePath.Length - 4);

            savePath = savePath + slot + ".txt";

            currentSlot = slot;

            PersistentEngine.SetState("Global Savegame", slot, true);

            RemoveAllSavedData();
            g.RestartGame();
        }