コード例 #1
0
 public void Reset(BehaviorTreeData behaviorTreeData, BehaviorTreeEntity behaviorTreeEntity)
 {
     BehaviorManager.Instance.BehaviorTreeData = behaviorTreeData;
     _behaviorTreeEntity = behaviorTreeEntity;
     BehaviorTreeEntity.CurrentDebugEntityId = _behaviorTreeEntity.EntityId;
     SetRunTimeDrawNode(behaviorTreeEntity);
     BehaviorManager.behaviorRuntimePlay(BehaviorPlayType.PLAY);
     NodeNotify.Clear();
 }
コード例 #2
0
 public void Draw()
 {
     EditorGUILayout.BeginHorizontal("box");
     {
         int index  = (int)BehaviorManager.Instance.PlayType;
         int option = GUILayout.Toolbar(index, optionArr, EditorStyles.toolbarButton);
         if (index != option)
         {
             if (null != BehaviorManager.behaviorRuntimePlay)
             {
                 BehaviorManager.behaviorRuntimePlay((BehaviorPlayType)option);
             }
         }
     }
     EditorGUILayout.EndHorizontal();
 }