示例#1
0
        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);
        }
示例#2
0
 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;
 }
示例#3
0
 //custom mesh
 public void SetType(Mesh mesh, Vector3 dir, float maxFps)
 {
     Type    = 4;
     CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh, dir, maxFps, this);
 }
示例#4
0
 //custom mesh
 public void SetType(Mesh mesh, Vector3 dir, float maxFps)
 {
     Type = 4;
     CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh,dir,maxFps,this);
 }