public TimeSwitchPiece(int id, GameObject timepanel, string time, string place) : base(id) { timePanel = timepanel; uiManager = timePanel.GetComponent <TimeUIManager>(); timeStr = time; placeStr = place; finished = false; }
public TimeSwitchNode(DataManager manager, GameObject root, PanelSwitch ps, string time, string place, string next) : base(manager, root, ps) { uiManager = root.transform.Find("Avg_Panel/TimeSwitch_Panel").GetComponent <TimeUIManager>(); factory = NodeFactory.GetInstance(); uiManager.SetNode(this); uiManager.SetLabel(time, place, next); //ps.SwitchTo_VerifyIterative("Avg_Panel", uiManager.Show); }
public override void Exec() { timePanel.SetActive(true); TimeUIManager uiManager = timePanel.GetComponent <TimeUIManager>(); //若UI控制动作完成 if (uiManager.finished) { //将Piece标记已完成 finished = true; uiManager.Close(); } else { //执行UI动作 uiManager.Show(timeStr, placeStr); } }