protected void OnDestroy() { if (Instance == this) { Instance = null; } }
protected override void Awake() { base.Awake(); if (Instance != null) { Destroy(this); return; } Instance = this; }
protected void OnDestroy() { if (Instance == this) { Instance = null; } }
protected override void Awake() { base.Awake(); if (Instance != null) { Destroy(this); return; } Instance = this; }