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