private void OnDestroy() { if (instance == this) { instance = null; } }
// Unity Methods private void Awake() { instance = this; }