예제 #1
0
 private void Awake()
 {
     if (InstanceOBJ != null)
     {
         DestroyImmediate(gameObject);
         return;
     }
     InstanceOBJ = this;
     DontDestroyOnLoad(gameObject);
 }
예제 #2
0
 // might not be needed for now
 public void OnApplicationQuit()
 {
     SingleApplicationManager.instance = null;
 }