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