|
@ -40,7 +40,7 @@ public class Map : MonoBehaviour { |
|
|
foreach (GameObject Player in Players) |
|
|
foreach (GameObject Player in Players) |
|
|
{ |
|
|
{ |
|
|
Transform PT = Player.transform; |
|
|
Transform PT = Player.transform; |
|
|
Transform model = PT.FindChild("Model"); |
|
|
|
|
|
|
|
|
Transform model = PT.Find("Model"); |
|
|
Instantiate(model, new Vector3(PT.position.x + minX, PT.position.y, PT.position.z), transform.rotation, PT); |
|
|
Instantiate(model, new Vector3(PT.position.x + minX, PT.position.y, PT.position.z), transform.rotation, PT); |
|
|
Instantiate(model, new Vector3(PT.position.x + maxX, PT.position.y, PT.position.z), transform.rotation, PT); |
|
|
Instantiate(model, new Vector3(PT.position.x + maxX, PT.position.y, PT.position.z), transform.rotation, PT); |
|
|
Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ), transform.rotation, PT); |
|
|
Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ), transform.rotation, PT); |
|
|