Exemplo n.º 1
0
    public void CloseWidget(string name, object arg = null)
    {
        UIWidget ui = GetUI(name) as UIWidget;

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

            if (widget != null)
            {
                widget.Close();
            }
            Finish();
        }
Exemplo n.º 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);
        }