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