Esempio n. 1
0
    public void SetEdge(FormElement edge)
    {
        if (edge.count != 2)
        {
            return;
        }

        icon.sprite = EdgeIcon;
        text.text   = edge.ToString();

        gameObject.SetActive(true);
    }
Esempio n. 2
0
    public void SetFace(FormElement face)
    {
        if (face.count < 3)
        {
            return;
        }

        icon.sprite = FaceIcon;
        text.text   = face.ToString();

        gameObject.SetActive(true);
    }
Esempio n. 3
0
    public void SetVertex(FormElement vertex)
    {
        if (vertex.count != 1)
        {
            return;
        }

        icon.sprite = VertexIcon;
        text.text   = vertex.ToString();

        gameObject.SetActive(true);
    }