Esempio n. 1
0
        public static void StartLevel(int levelNumber)
        {
            audioManager.Fadeout();
            PersistentEngine g = GameObject.Find("Global").GetComponent <PersistentEngine>();

            RemoveAllSavedData();
            PersistentEngine.SetState("Global level", levelNumber);
            PersistentEngine.SetState("Global loadingLevel", levelNumber, true);
            PersistentEngine.SetPause(false);
            g.StartSelectedLevel();
        }