예제 #1
0
파일: MrTween.cs 프로젝트: MurrayIRC/mara
        void Awake()
        {
            if (_instance == null)
            {
                _instance = this;
            }

#if UNITY_5_4_OR_NEWER
            SceneManager.sceneLoaded -= OnSceneWasLoaded;
            SceneManager.sceneLoaded += OnSceneWasLoaded;
#endif
        }
예제 #2
0
파일: MrTween.cs 프로젝트: MurrayIRC/mara
 void OnApplicationQuit()
 {
     _instance = null;
     Destroy(gameObject);
     _applicationIsQuitting = true;
 }