// 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>();
    }
Ejemplo n.º 3
0
    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>();
    }
Ejemplo n.º 4
0
 public void Quit()
 {
     Time.timeScale = 1f;
     IntersceneData.Quit();
 }
Ejemplo n.º 5
0
 public void QuitToMenu()
 {
     Time.timeScale = 1f;
     IntersceneData.LoadNextScene("MainMenu");
 }
Ejemplo n.º 6
0
 public void Quit()
 {
     IntersceneData.Quit();
 }
Ejemplo n.º 7
0
 public void StartGame()
 {
     IntersceneData.LoadNextScene(sceneToLoad);
 }