public void SetInputReference(int nodeId, int portId, WirePortDataType dataType, bool typeLocked)
 {
     if (OutputPortReference.IsValid)
     {
         OutputPortReference.Invalidate();
     }
     InputPortReference.SetReference(nodeId, portId, dataType, typeLocked);
 }
Esempio n. 2
0
 public void ActivateSnap(Vector2 position, WirePort port)
 {
     SnapPort.SetReference(port);
     SnapEnabled  = true;
     SnapPosition = position;
 }