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