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