void SelectedCallback(object handle) { switch (handle.ToString()) { case "DebugLog": XDebugLog log = new XDebugLog(); log.name = "XDebugAction"; currentNode.AddFSMAction(log); break; case "Event": XBehaviorEvent condition = new XBehaviorEvent(""); condition.name = "Finish"; currentNode.AddFSMEvent(condition); break; } }
public void SetBehaviorEvent(XBehaviorEvent selectedEvent) { this.selectedEvent = selectedEvent; selectedNode = this.mouseInNode; IsTransition = true; }
public void AddFSMEvent(XBehaviorEvent behEvent) { state.AddEvent(behEvent); isDirty = true; }