private void Awake() { if (managerInstance != null) { GameSceneManager.Destroy(managerInstance); } else { managerInstance = this; } DontDestroyOnLoad(this); }
private void Awake() { if (managerInstance != null) { GameSceneManager.Destroy(managerInstance); } else { managerInstance = this; } DontDestroyOnLoad(this); }