コード例 #1
0
 // Use this for initialization
 void Awake()
 {
     if (inst == null) {
         inst = this;
         DontDestroyOnLoad (inst.gameObject);
     } else {
         Destroy(this.gameObject);
     }
 }
コード例 #2
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>();
    }
コード例 #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>();
    }
コード例 #4
0
 public void Quit()
 {
     Time.timeScale = 1f;
     IntersceneData.Quit();
 }
コード例 #5
0
 public void QuitToMenu()
 {
     Time.timeScale = 1f;
     IntersceneData.LoadNextScene("MainMenu");
 }
コード例 #6
0
ファイル: MainMenu.cs プロジェクト: IvanPavlov7007/LD47
 public void Quit()
 {
     IntersceneData.Quit();
 }
コード例 #7
0
ファイル: MainMenu.cs プロジェクト: IvanPavlov7007/LD47
 public void StartGame()
 {
     IntersceneData.LoadNextScene(sceneToLoad);
 }