示例#1
0
 static MeshPool()
 {
     MeshPool.humanlikeBodySet        = new GraphicMeshSet(1.5f);
     MeshPool.humanlikeHeadSet        = new GraphicMeshSet(1.5f);
     MeshPool.humanlikeHairSetAverage = new GraphicMeshSet(1.5f);
     MeshPool.humanlikeHairSetNarrow  = new GraphicMeshSet(1.3f, 1.5f);
     MeshPool.plane025    = MeshMakerPlanes.NewPlaneMesh(0.25f);
     MeshPool.plane03     = MeshMakerPlanes.NewPlaneMesh(0.3f);
     MeshPool.plane05     = MeshMakerPlanes.NewPlaneMesh(0.5f);
     MeshPool.plane08     = MeshMakerPlanes.NewPlaneMesh(0.8f);
     MeshPool.plane10     = MeshMakerPlanes.NewPlaneMesh(1f);
     MeshPool.plane10Back = MeshMakerPlanes.NewPlaneMesh(1f, false, true);
     MeshPool.plane10Flip = MeshMakerPlanes.NewPlaneMesh(1f, true);
     MeshPool.plane14     = MeshMakerPlanes.NewPlaneMesh(1.4f);
     MeshPool.plane20     = MeshMakerPlanes.NewPlaneMesh(2f);
     MeshPool.planes      = new Dictionary <Vector2, Mesh>(FastVector2Comparer.Instance);
     MeshPool.planesFlip  = new Dictionary <Vector2, Mesh>(FastVector2Comparer.Instance);
     MeshPool.circle      = MeshMakerCircles.MakeCircleMesh(1f);
     MeshPool.pies        = new Mesh[361];
     for (int i = 0; i < 361; i++)
     {
         MeshPool.pies[i] = MeshMakerCircles.MakePieMesh(i);
     }
     MeshPool.wholeMapPlane = MeshMakerPlanes.NewWholeMapPlane();
 }
示例#2
0
 static MeshPool()
 {
     for (int i = 0; i < 361; i++)
     {
         MeshPool.pies[i] = MeshMakerCircles.MakePieMesh(i);
     }
     MeshPool.wholeMapPlane = MeshMakerPlanes.NewWholeMapPlane();
 }