private void OnDestroy() { if (singleton == this) { singleton = null; } }
private void Reset() { if (singleton == null) { singleton = this; } else { Destroy(this); } }