private void OnDestroy() { if (Instance == this) { Instance = null; } }
private void Awake() { if (Instance != null) { Destroy(this); return; } Instance = this; OnValidate(); }
private void OnDestroy() { if (Instance == this) { Instance = null; } }
private void Awake() { if (Instance != null) { Destroy(this); return; } Instance = this; OnValidate(); }