コード例 #1
0
 private void RemoveAllNodes()
 {
     this.behaviorTree.ClearBehaviors();
     this.currentNodeSerializedObject = null;
     this.currentNodes = null;
     this.Save();
 }
コード例 #2
0
 private void ReplaceNode(BehaviorTree.BehaviorNode node, Type behaviorType)
 {
     this.currentNodeSerializedObject = null;
     this.currentNodes = null;
     this.behaviorTree.ReplaceBehavior(node, behaviorType);
     this.Save();
 }
コード例 #3
0
        private void RemoveNodeOnly(BehaviorTree.BehaviorNode node)
        {
            this.currentNodeSerializedObject = null;
            this.currentNodes = null;

            this.behaviorTree.RemoveBehaviorExcludeChildren(node);
            this.Save();
        }
コード例 #4
0
        private void RemoveNode(BehaviorTree.BehaviorNode node)
        {
            this.currentNodeSerializedObject = null;
            this.currentNodes = null;

            this.behaviorTree.RemoveBehavior(node);
            this.Save();
        }
コード例 #5
0
        void UpdateEventObject()
        {
            if (!triggerable.hasType)
            {
                return;
            }

            eventObject     = (Stratus.StratusEvent)Utilities.StratusReflection.Instantiate(type);
            serializedEvent = new StratusSerializedEditorObject(eventObject);
            serializedEvent.Deserialize(eventDataProperty);
        }
コード例 #6
0
        private void OnSelectionChanged(IList <int> ids)
        {
            this.currentNodeSerializedObject = null;
            //this.currentNodeProperty = null;

            this.currentNodes = this.treeInspector.GetElements(ids);
            if (this.currentNodes.Count > 0)
            {
                this.currentNode = this.currentNodes[0];
                this.currentNodeSerializedObject = new StratusSerializedEditorObject(this.currentNode.data);
                //SerializedObject boo = new SerializedObject(currentNode.data);
                //this.currentNodeProperty = this.treeElementsProperty.GetArrayElementAtIndex(ids[0]);
            }
        }