コード例 #1
0
ファイル: Boing.cs プロジェクト: MurrayIRC/kaneda-old-unity
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }

            SceneManager.sceneLoaded -= OnSceneWasLoaded;
            SceneManager.sceneLoaded += OnSceneWasLoaded;
        }
コード例 #2
0
ファイル: Boing.cs プロジェクト: MurrayIRC/kaneda-old-unity
 private void OnApplicationQuit()
 {
     instance = null;
     Destroy(this.gameObject);
     applicationIsQuitting = true;
 }