Пример #1
0
    // Update is called once per frame
    void Update()
    {
        HandleInput();

        if (makingDart)
        {
            VibbiUtils.DrawLine(start, end, Color.red);
        }
    }
Пример #2
0
    //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);
    }
Пример #3
0
 void AddConnection(Transform start, Transform end)
 {
     connections.Add(VibbiUtils.CreateLine(start.position, end.position, Color.blue, transform));
 }