public CustomMesh AddCustomMesh(Mesh mesh, Vector3 dir, float maxFps) { VertexSegment segment = GetVertices(mesh.vertices.Length, mesh.triangles.Length); CustomMesh cmesh = new CustomMesh(segment, mesh, dir, maxFps); return(cmesh); }
public CustomMesh AddCustomMesh(Mesh mesh,Vector3 dir, float maxFps) { VertexSegment segment = GetVertices(mesh.vertices.Length, mesh.triangles.Length); CustomMesh cmesh = new CustomMesh(segment,mesh,dir,maxFps); return cmesh; }
//custom mesh public void SetType(Mesh mesh, Vector3 dir, float maxFps) { Type = 4; CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh, dir, maxFps, this); }
//custom mesh public void SetType(Mesh mesh, Vector3 dir, float maxFps) { Type = 4; CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh,dir,maxFps,this); }