public void OnDestroy() { if (_instance == this) { _instance = null; } }
public void Awake() { if (_instance != null) { Destroy(this); return; } _instance = this; }