Esempio n. 1
0
 void NodeUnselectedCallback(PWNode node)
 {
     if (node == this)
     {
         isSelected = false;
     }
 }
Esempio n. 2
0
 void NodeSelectedCallback(PWNode node)
 {
     if (node == this)
     {
         isSelected = true;
     }
 }
Esempio n. 3
0
 public void Reload(PWNode from)
 {
     if (isProcessing)
     {
         Debug.LogError("Tried to reload a node from a processing pass !");
         return;
     }
     if (OnReload != null)
     {
         OnReload(from);
     }
     if (OnPostReload != null)
     {
         OnPostReload(from);
     }
 }
Esempio n. 4
0
        public void             RemoveLinkFromNode(PWNode node)
        {
            List <PWNodeLink> linkToRemove = new List <PWNodeLink>();

            //search in input anchors:
            foreach (var anchor in inputAnchors)
            {
                linkToRemove.AddRange(anchor.links.Where(l => l.toNode == node));
            }

            //search in output anchors:
            foreach (var anchor in outputAnchors)
            {
                linkToRemove.AddRange(anchor.links.Where(l => l.fromNode == node));
            }

            foreach (var link in linkToRemove)
            {
                RemoveLink(link);
            }
        }
Esempio n. 5
0
 public void SendMessage(PWNode target, object message)
 {
     target.OnMessageReceived(this, message);
 }
Esempio n. 6
0
 public void NotifyReload(PWNode node)
 {
     node.Reload(this);
 }