|
@ -80,7 +80,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -91,7 +91,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -103,7 +103,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -114,7 +114,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -125,7 +125,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -149,7 +149,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -161,7 +161,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
GameObject MirrorTile = Instantiate(Tile); |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.position = newPos; |
|
|
MirrorTile.transform.Rotate(Vector3.up, RandomRotation); |
|
|
|
|
|
|
|
|
MirrorTile.transform.rotation = Tile.transform.rotation; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
MirrorTile.name = Tile.name + "(Mirror)"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -176,7 +176,7 @@ public class Map : MonoBehaviour |
|
|
if (Landmarks.Count > 0) |
|
|
if (Landmarks.Count > 0) |
|
|
{ |
|
|
{ |
|
|
int rand = Random.Range(0, Landmarks.Count); |
|
|
int rand = Random.Range(0, Landmarks.Count); |
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform); |
|
|
|
|
|
|
|
|
Instantiate(Landmarks[rand], LP.transform.position, Landmarks[rand].transform.rotation, tile.transform); |
|
|
Landmarks.Remove(Landmarks[rand]); |
|
|
Landmarks.Remove(Landmarks[rand]); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|