예제 #1
0
        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;
            }
        }
예제 #2
0
 public void SetBehaviorEvent(XBehaviorEvent selectedEvent)
 {
     this.selectedEvent = selectedEvent;
     selectedNode       = this.mouseInNode;
     IsTransition       = true;
 }
예제 #3
0
 public void AddFSMEvent(XBehaviorEvent behEvent)
 {
     state.AddEvent(behEvent);
     isDirty = true;
 }