Esempio n. 1
0
 public static Mesh NewBoltMesh(float distance)
 {
     TM_MeshMaker.lightningTop = new Vector2(Rand.Range(-0.2f, 0.2f), distance);
     TM_MeshMaker.MakeVerticesBase();
     TM_MeshMaker.DoubleVertices();
     return(TM_MeshMaker.MeshFromVerts());
 }
Esempio n. 2
0
 public static Mesh NewBoltMesh(float distance, float amplitude)
 {
     TM_MeshMaker.lightningTop = new Vector2(Rand.Range(-0.2f, .2f), distance);
     TM_MeshMaker.MakeVerticesBase();
     if (amplitude > 0)
     {
         TM_MeshMaker.PeturbVerticesRandomly(amplitude);
     }
     TM_MeshMaker.DoubleVertices();
     return(TM_MeshMaker.MeshFromVerts());
 }