Exemple #1
0
    public void CloseWidget(string name, object arg = null)
    {
        UIWidget ui = GetUI(name) as UIWidget;

        if (ui != null)
        {
            ui.Close(arg);
        }
    }
Exemple #2
0
        public override void OnEnter()
        {
            UIWidget widget = UIUtility.Find <UIWidget> (_name.Value);

            if (widget != null)
            {
                widget.Close();
            }
            Finish();
        }
Exemple #3
0
        public override ActionStatus OnUpdate()
        {
            UIWidget widget = WidgetUtility.Find <UIWidget>(this.m_WidgetName);

            if (widget == null)
            {
                Debug.LogWarning("Missing notification widget " + this.m_WidgetName + " in scene!");
                return(ActionStatus.Failure);
            }
            widget.Close();
            return(ActionStatus.Success);
        }