void OnDestroy() { if (Instance == this) { Instance = null; SceneManager.activeSceneChanged -= OnSceneChange; } }
void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(this); } }