示例#1
0
    private void CambiarMesh()
    {
        EquipoData x = coleccionRefer.GetComponent <ColeccionEquipo>().GetData(equip.tipo2);

        eqMesh.transform.localRotation = Quaternion.Euler(x.meshRotation);
        lmesh.vertices  = x.mesh.vertices;
        lmesh.triangles = x.mesh.triangles;
        lmesh.uv        = x.mesh.uv;
        lmesh.RecalculateBounds();
        offset   = x.offsets;
        rotacion = x.GetRotations();
        eqMesh.GetComponent <MeshRenderer>().material = x.material;
    }
示例#2
0
        public IEnumerable <Equipo> EquipoRep(string nombre)
        {
            EquipoData eData = new EquipoData();

            return(eData.infoEquipo(nombre));
        }