private void Awake() { if (_instance != null) { Destroy(_instance); } _instance = this; DontDestroyOnLoad(this.gameObject); }
private void Awake() { if (Instance != null) { Destroy(Instance.gameObject); } Instance = this; DontDestroyOnLoad(gameObject); }