public void Init(DetectEvent detectEvent) { detectManager = DetectManager.GetInstance(); uiManager = root.transform.Find("Avg_Panel/Invest_Panel").GetComponent <DetectUIManager>(); factory = NodeFactory.GetInstance(); this.detectEvent = detectEvent; //Debug.Log(detectManager.CurrentPlace()); uiManager.SetDetectNode(this, detectEvent.sections, detectManager.currentPlace, detectEvent.id); }
//移动操作 public void MoveTo(string place) { //判断是否 首次进入该场景 if (!string.IsNullOrEmpty(detectEvent.sections[place].entry) && !detectManager.IsEntered(place)) { //结束当前NODE 进入 文本NODE ChooseNext(detectEvent.sections[place].entry); } else { //普通的移动 UIManager设置新数据 uiManager.SetDetectNode(this, detectEvent.sections, place, detectEvent.id); } //修改数据 detectManager.EnterPlace(place); }
public void MoveTo(string place) { //移动操作 if (!string.IsNullOrEmpty(detectEvent.sections[place].entry) && !detectManager.IsEntered(place)) { //首次进入则触发 detectManager.EnterPlace(place); ChooseNext(detectEvent.sections[place].entry); } else { //普通移动 detectManager.EnterPlace(place); uiManager.SetDetectNode(this, detectEvent.sections, place, detectEvent.id); uiManager.ShowCharaContainer(); } //section = detectEvent.sections[place]; //uiManager.LoadSection(section); //uiManager.SwitchStatus(Constants.DETECT_STATUS.FREE); }