// Use this for initialization void Awake() { if (inst == null) { inst = this; DontDestroyOnLoad (inst.gameObject); } else { Destroy(this.gameObject); } }
void Awake() { if(sInstance != null) Debug.LogError("ERROR: More than one IntersceneData in scene. There can only be one!"); sInstance = this; DontDestroyOnLoad(this); ownedEquipment = new List<Equipment>(); }
void Awake() { if (sInstance != null) { Debug.LogError("ERROR: More than one IntersceneData in scene. There can only be one!"); } sInstance = this; DontDestroyOnLoad(this); ownedEquipment = new List <Equipment>(); }
public void Quit() { Time.timeScale = 1f; IntersceneData.Quit(); }
public void QuitToMenu() { Time.timeScale = 1f; IntersceneData.LoadNextScene("MainMenu"); }
public void Quit() { IntersceneData.Quit(); }
public void StartGame() { IntersceneData.LoadNextScene(sceneToLoad); }