private void OnDestroy() { if (_instance == this) { _instance = null; } _activePanels.Clear(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(gameObject); return; } _instance = this; }
private void OnDestroy() { if (_instance == this) { _instance = null; } _activePanels.Clear(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(gameObject); return; } _instance = this; }