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