private void OnClickOpenBuff() { Skill_LearnBuffNode node = Model as Skill_LearnBuffNode; GraphGroupPath path = GraphSetting.Setting.GetSearchPath <BuffGraphGroupAsset>(); BuffGraphAsset asset = GraphSetting.Setting.GetAsset <BuffGraphAsset>(path.searchPath, "buff_" + node.id); if (asset != null) { BaseGraphWindow.JumpTo(asset); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); Skill_Tl_CreateBuffClip clip = Target as Skill_Tl_CreateBuffClip; if (GUILayout.Button("Open", GUILayout.Height(30))) { GraphGroupPath path = GraphSetting.Setting.GetSearchPath <BuffGraphGroupAsset>(); BuffGraphAsset asset = GraphSetting.Setting.GetAsset <BuffGraphAsset>(path.searchPath, "buff_" + clip.addBuff.id); BaseGraphWindow.JumpTo(asset); } }