|
|
@ -68,7 +68,11 @@ public class Map : MonoBehaviour |
|
|
|
Tile.transform.position = position; |
|
|
|
Tile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
Tile.name = "Tile [" + x + "," + z + "]"; |
|
|
|
|
|
|
|
|
|
|
|
PopulateTile(Tile.GetComponent<Tile>()); |
|
|
|
|
|
|
|
|
|
|
|
if (x == 0) |
|
|
|
{ |
|
|
|
Vector3 newPos = position; |
|
|
@ -172,7 +176,7 @@ public class Map : MonoBehaviour |
|
|
|
if (Landmarks.Count > 0) |
|
|
|
{ |
|
|
|
int rand = Random.Range(0, Landmarks.Count); |
|
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform.parent); |
|
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform); |
|
|
|
Landmarks.Remove(Landmarks[rand]); |
|
|
|
} |
|
|
|
} |
|
|
|