private void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); }
private void Awake() { if (instance == null && instance != this) { instance = this; } else { Destroy(gameObject); } }
private void Awake() { if (_BPeerMInstance != null && _BPeerMInstance != this) { Destroy(this.gameObject); } else { _BPeerMInstance = this; DontDestroyOnLoad(this.gameObject); } }