private void Awake() { if (instance != null) { Destroy(this.gameObject); } else { //DontDestroyOnLoad(this.gameObject); instance = this; } }
private void Start() { instance = this; }
private void Awake() { if (instance != null) { Destroy(this.gameObject); } else { //DontDestroyOnLoad(this.gameObject); instance = this; } }
private void Start() { instance = this; }