|
@@ -97,10 +97,14 @@ public class Wall
|
|
//var wall = WallCreate.AddWall(this,
|
|
//var wall = WallCreate.AddWall(this,
|
|
// new Vector3(w.start_width, WallCreate.WallHeight / 2, w.start_height),
|
|
// new Vector3(w.start_width, WallCreate.WallHeight / 2, w.start_height),
|
|
// new Vector3(Mathf.Abs(w.end_width), WallCreate.WallHeight, Mathf.Abs(w.end_height)));
|
|
// new Vector3(Mathf.Abs(w.end_width), WallCreate.WallHeight, Mathf.Abs(w.end_height)));
|
|
- coord.Add(end_width - (start_width/2));
|
|
|
|
- coord.Add(end_height - (start_height / 2));
|
|
|
|
- coord.Add(end_width + (start_width/2));
|
|
|
|
- coord.Add(end_height + (start_height / 2));
|
|
|
|
|
|
+ var x1 = start_width - (end_width / 2);
|
|
|
|
+ coord.Add(x1); //x1
|
|
|
|
+ var x2 = start_height - (end_height / 2);
|
|
|
|
+ coord.Add(x2); //z1
|
|
|
|
+ var z1 = start_width + (end_width / 2);
|
|
|
|
+ coord.Add(z1); //x2
|
|
|
|
+ var z2 = start_height + (end_height / 2);
|
|
|
|
+ coord.Add(z2); //z2
|
|
|
|
|
|
return coord;
|
|
return coord;
|
|
}
|
|
}
|