void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } }
void OnDestroy() { transitions.Clear(); instance = null; }
void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } }
void OnDestroy() { transitions.Clear(); instance = null; }