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