Ejemplo n.º 1
0
    void ContstructBar()
    {
        if (connectedVertInLayerDefOrder.Count == 6)
        {
            StaticBar b0 = Instantiate(barPrefab, BarObjHolder);
            b0.SetupBar(bar0pos[0], bar0pos[1], thickness, 0, VertexType);
            allBars[0] = b0;

            StaticBar b1 = Instantiate(barPrefab, BarObjHolder);
            b1.SetupBar(bar1pos[0], bar1pos[1], thickness, 1, VertexType);
            allBars[1] = b1;

            StaticBar b2 = Instantiate(barPrefab, BarObjHolder);
            b2.SetupBar(bar2pos[0], bar2pos[1], thickness, 2, VertexType);
            allBars[2] = b2;

            StaticBar b3 = Instantiate(barPrefab, BarObjHolder);
            b3.SetupBar(bar3pos[0], bar3pos[1], thickness, 3, VertexType);
            allBars[3] = b3;

            StaticBar b4 = Instantiate(barPrefab, BarObjHolder);
            b4.SetupBar(bar4pos[0], bar4pos[1], thickness, 4, VertexType);
            allBars[4] = b4;

            StaticBar b5 = Instantiate(barPrefab, BarObjHolder);
            b5.SetupBar(bar5pos[0], bar5pos[1], thickness, 5, VertexType);
            allBars[5] = b5;
        }
    }
Ejemplo n.º 2
0
 public double Add(double a, double b)
 {
     return(StaticBar.Add(a, b));
 }