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