void OnDestroy() { if (_instance == this) { _instance = null; } }
void Awake() { if (_instance == null) { _instance = this; gameObject.SetActive(false); } else { Destroy(gameObject); } }
void OnDestroy() { if (_instance == this) { _instance = null; } }
void Awake() { if (_instance == null) { _instance = this; gameObject.SetActive(false); } else { Destroy(gameObject); } }