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