Beispiel #1
0
        //---------------------------------------------------------------------
        // Public
        //---------------------------------------------------------------------

        public void StartDrawing(RectTransform start, int index)
        {
            _currentEdge = Instantiate(_edgeUiPrefab, _edgesPlaceholder);
            _currentEdge.StartDrawing(start, MouseFollower.Instance.Transform, DEFAULT_LINE_WIDTH);
            _currentEdge.StartVertex = index;
            Drawing = true;
            _start  = index;
        }
Beispiel #2
0
 public void CancelDrawing()
 {
     _currentEdge = null;
     Drawing      = false;
 }