protected override void setupDialog(UI.SimpleDialog dialog) { base.setupDialog(dialog); var lockName = $"{dialogPrefabName}-{dialog.GetInstanceID():X}"; dialog.onPointerEnterEvent.AddListener(_ => Utils.LockControls(lockName)); dialog.onPointerExitEvent.AddListener(_ => Utils.LockControls(lockName, false)); dialog.onClose.AddListener(() => Utils.LockControls(lockName, false)); }
protected virtual void setupDialog(SimpleDialog dialog) { }