Example #1
0
    GameObject InstantiateGo(GameObject pf, bbLoc l, Color c)
    {
        Vector3    pos = new Vector3(l.x(), l.z(), l.y());
        GameObject go  = Instantiate(pf, pos, Quaternion.identity);

        go.GetComponentInChildren <Renderer>().material.color = c;
        return(go);
    }