private void OnDestroy() { if (this == sInstance) { sInstance = null; } }
void Awake() { if (sInstance == null) { sInstance = this; Setup(); } else if (sInstance != this) { Destroy(this.gameObject); return; } }