//GameObject body;
 public void Start()
 {
     int i;
     myTransform = transform;
     originalMeshData = new permaVertsColl[meshFilters.Length];
     for (i = 0; i < meshFilters.Length; i++)
     {
         originalMeshData[i]= new permaVertsColl();
         originalMeshData[i].permaVerts = meshFilters[i].mesh.vertices;
     }
     //foreach (Transform child in transform)
     //{
     //    if (child.gameObject.tag == "Body" || child.gameObject.name == "Body")
     //        body = child.gameObject;
     //}
 }
Ejemplo n.º 2
0
    //GameObject body;
    public void Start()
    {
        int i;

        myTransform      = transform;
        originalMeshData = new permaVertsColl[meshFilters.Length];
        for (i = 0; i < meshFilters.Length; i++)
        {
            originalMeshData[i]            = new permaVertsColl();
            originalMeshData[i].permaVerts = meshFilters[i].mesh.vertices;
        }
        //foreach (Transform child in transform)
        //{
        //    if (child.gameObject.tag == "Body" || child.gameObject.name == "Body")
        //        body = child.gameObject;
        //}
    }