public void SetDetectNode(DetectNode node, Dictionary <string, DetectPlaceSection> sections, string place, int id) { currentDetectNode = node; if (eventID != id) { //调查大Node不同 Debug.Log("node不同:载入 " + node.ToString()); LoadSection(sections.FirstOrDefault().Value); currentPlace = section.place; SwitchStatus(Constants.DETECT_STATUS.FREE); eventID = id; } else if (currentPlace != place) { //地点不同 Debug.Log("地点不同!当前:" + currentPlace + "即将进入 " + place); currentPlace = place; LoadSection(sections[currentPlace]); SwitchStatus(Constants.DETECT_STATUS.FREE); } else { LoadSection(sections[currentPlace]); SwitchStatus(status); } }
public void SetDetectNode(DetectNode node, Dictionary <string, DetectPlaceSection> sections, string place, int id) { currentDetectNode = node; if (eventID != id) { //调查大Node不同 Debug.Log("node不同!"); Debug.Log("载入编号:" + node.ToString()); //进入默认子节点 LoadSection(sections.FirstOrDefault().Value); currentPlace = currentSection.place; im.MoveInit(currentSection.imagename, currentSection.charaimage); SwitchStatus(Constants.DETECT_STATUS.FREE); eventID = id; } else if (currentPlace != place) { //地点不同 Debug.Log("地点不同!当前:" + currentPlace); Debug.Log("即将进入 " + place); //更换子节点 LoadSection(sections[place]); currentPlace = place; //更换背景与前景 im.MoveInit(currentSection.imagename, currentSection.charaimage); SwitchStatus(Constants.DETECT_STATUS.FREE); } else { LoadSection(sections[currentPlace]); SwitchStatus(status); } }