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