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