Пример #1
0
 protected internal override void DrawConnection()
 {
     if (connection != null && connection.Body != null)
     {
         EffectUtility.DrawLine(connection.rect.center, this.rect.center, Color.blue);
     }
 }
Пример #2
0
 protected internal override void DrawConnection()
 {
     if (connection != null)
     {
         EffectUtility.DrawLine(this.rect.center, connection.rect.center);
     }
 }
Пример #3
0
 public static void DrawLinkSelecting()
 {
     if (curNodeEditorState.IsLinkSetting)
     {
         Vector3 startPos = new Vector3(curNodeEditorState.SelectedKnob.rect.center.x,
                                        curNodeEditorState.SelectedKnob.rect.center.y, 0);
         Vector3 endPos = new Vector3(CurNodeInputInfo.InputPos.x, CurNodeInputInfo.InputPos.y, 0);
         EffectUtility.DrawLine(startPos, endPos);
     }
 }