private void RemoveAllNodes() { this.behaviorTree.ClearBehaviors(); this.currentNodeSerializedObject = null; this.currentNodes = null; this.Save(); }
private void ReplaceNode(BehaviorTree.BehaviorNode node, Type behaviorType) { this.currentNodeSerializedObject = null; this.currentNodes = null; this.behaviorTree.ReplaceBehavior(node, behaviorType); this.Save(); }
private void RemoveNodeOnly(BehaviorTree.BehaviorNode node) { this.currentNodeSerializedObject = null; this.currentNodes = null; this.behaviorTree.RemoveBehaviorExcludeChildren(node); this.Save(); }
private void RemoveNode(BehaviorTree.BehaviorNode node) { this.currentNodeSerializedObject = null; this.currentNodes = null; this.behaviorTree.RemoveBehavior(node); this.Save(); }
void UpdateEventObject() { if (!triggerable.hasType) { return; } eventObject = (Stratus.StratusEvent)Utilities.StratusReflection.Instantiate(type); serializedEvent = new StratusSerializedEditorObject(eventObject); serializedEvent.Deserialize(eventDataProperty); }
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]); } }