public void CloseWidget(string name, object arg = null) { UIWidget ui = GetUI(name) as UIWidget; if (ui != null) { ui.Close(arg); } }
public override void OnEnter() { UIWidget widget = UIUtility.Find <UIWidget> (_name.Value); if (widget != null) { widget.Close(); } Finish(); }
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); }