private void OnDestroy() { if (instance == this) { instance = null; } }
private void Awake() { if (!instance) { instance = this; } else { Destroy(this); } }
private void OnDestroy() { if (instance == this) { instance = null; } }
private void Awake() { if (!instance) { instance = this; } else { Destroy(this); } }