// Update is called once per frame void Update() { HandleInput(); if (makingDart) { VibbiUtils.DrawLine(start, end, Color.red); } }
//takes a line and saves it in the sewing list, if two lines are present, SEW public void InitSewing(GameObject line) { if (sewingList.Contains(line)) { return; } if (sewingList.Count == 0) { //set selected material color color = VibbiUtils.RandomColor(); } sewingList.Add(line); if (sewingList.Count == 2) { SewFromList(); sewingList.Clear(); } line.GetComponent <Selectable>().SetSewingColor(color); }
void AddConnection(Transform start, Transform end) { connections.Add(VibbiUtils.CreateLine(start.position, end.position, Color.blue, transform)); }