Пример #1
0
 protected virtual void DoDrawEdge(Edge edge, uint index, Vector2 from, Vector2 to, Color defaultColor)
 {
     if (editor.selectedEdges.Contains(edge))
     {
         DialogueEditorUtility.DrawCurves(from, to, Color.yellow, 5f);
     }
     else
     {
         DialogueEditorUtility.DrawCurves(from, to, defaultColor);
     }
 }
Пример #2
0
        protected override void DoDrawEdge(Edge edge, uint index, Vector2 from, Vector2 to, Color defaultColor)
        {
            var color = Color.grey;

            if (index == 0 || index == 1)
            {
                color = Color.green;
            }
            else if (index == 2)
            {
                color = Color.red;
            }

            if (editor.selectedEdges.Contains(edge))
            {
                DialogueEditorUtility.DrawCurves(from, to, color, 8f);
            }
            else
            {
                DialogueEditorUtility.DrawCurves(from, to, color);
            }
        }