public void RecordReactInfo(IFlowSystemCtrl ctrl) { ///没有反应对象,直接跳过 if (activeRact == null) { return; } //没有输出内容,直接跳过 if (string.IsNullOrEmpty(activeRact.OutType)) { return; } //遍历记录输出信息 for (int i = 0; i < ChildNodes.Count; i++) { if (ChildNodes[i].Info.enterOnly || functionInNodes.Contains(ChildNodes[i].Info.nodeID)) { continue; } if (ChildNodes[i].ConnectedNode != null) { IInOutItem inout = ChildNodes[i].ConnectedNode.Body.Trans.GetComponent <IInOutItem>(); ctrl.AddActiveItem(inout, ChildNodes[i].ConnectedNode.Info.nodeID, activeRact.OutType); } else { activeRact.InteractOutPutFiled.Invoke(); PresentationData data = PresentationData.Allocate("警告", activeRact.outPutFiledinformation, "", () => { }); BundleUISystem.UIGroup.Open <PresentationPanel>(data); } } }
public void Send() { if (tipOnly) { SceneMain.Current.InvokeEvents <string>(AppConfig.EventKey.TIP, text); } else { PresentationData data = PresentationData.Allocate(title, text, text); BundleUISystem.UIGroup.Open <PresentationPanel>(data); } }
/// <summary> /// 输入并反应 /// </summary> /// <param name="nodeId"></param> /// <param name="type"></param> /// <param name="onComplete"></param> public void FunctionIn(int nodeId, string type, UnityAction onComplete) { this.onComplete = onComplete; functionInNodes.Add(nodeId); activeRact = interact.Find((x) => x.nodeID == nodeId && x.intype == type); if (activeRact != null) { activeRact.Interact.Invoke(); SceneMain.Current.InvokeEvents(AppConfig.EventKey.TIP, activeRact.Information); } else { PresentationData data = PresentationData.Allocate("<color=red>警告</color>", name + "没有配制对应的输入类型" + type, ""); BundleUISystem.UIGroup.Open <PresentationPanel>(data); } }
void LoopAction() { if (currIndex >= stapCount) { BuildSuccess(); return; } if (currStap.needOperate) { ToNextStap(); SetActives(true, true, true); } else { PresentationData data = PresentationData.Allocate(currStap.name, currStap.infomation, currStap.tipInfo); //Facade.Instance.SendNotification<PresentationData>("PresentationData", data); UIGroup.Open <PresentationPanel>(data); //Laboratory.Current.panelSelect = OnPresentationDataSelected; SetActives(true, false, true); } }
public void SendWaringInformation(string info) { PresentationData data = PresentationData.Allocate("提示", info, ""); UIGroup.Open <PresentationPanel>(data); }
public void Send(string info) { PresentationData data = PresentationData.Allocate(title, info, info); BundleUISystem.UIGroup.Open <PresentationPanel>(data); }