protected override void OnDestroy() { if (PopupRoot.Instance == this) { PopupRoot.Instance = null; } base.OnDestroy(); }
protected override void Awake() { base.Awake(); PopupRoot.Instance = this; }