Пример #1
0
 private void OnEnable()
 {
     if (Traversal == null)
     {
         Traversal = new NoiseTraversal(this);
     }
     // Register to other callbacks
     //NodeEditorCallbacks.OnDeleteNode += CheckDeleteNode;
 }
Пример #2
0
 protected override void ValidateSelf()
 {
     if (Traversal == null)
     {
         Traversal = new NoiseTraversal(this);
     }
     if (rootNode == null && (rootNode = nodes.Find((Node n) => n.GetID == rootNodeID) as VoxelInputNode) == null)
     {
         rootNode = Node.Create(rootNodeID, Vector2.zero) as VoxelInputNode;
     }
 }
Пример #3
0
 protected override void OnCreate()
 {
     Traversal = new NoiseTraversal(this);
     rootNode  = Node.Create(rootNodeID, Vector2.zero) as VoxelInputNode;
 }