public void ReLoadFlow() { Release(); if (mCurrent != null && mCurrent.name.Length > 0) { mCurrent = NodeFlowEditorLoader.Load(mCurrent.name); } }
public void LoadFlowByPath(string path) { Release(); mCurrent = NodeFlowEditorLoader.Load(path); if (mCurrent != null) { mCurrent.name = path; } }
public static EditorWindow OpenBTEdtior() { NodeFlowEditorWindow window = GetWindow(typeof(NodeFlowEditorWindow)) as NodeFlowEditorWindow; window.name = "行为树编辑器"; NodeFlowEditorSerializeBase ser = new NodeFlowEditorSerializeBase(); ser.editor = window; window.serialize = ser; NodeFlowEditorLoader.LoadEditor(window, "BTEditor.xml"); window.Show(); window.OnShow(); return(window); }