diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index da7945b..ff4667c 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -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()); + + 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]); } } diff --git a/Assets/Shaders.meta b/Assets/Shaders.meta new file mode 100644 index 0000000..472bf46 --- /dev/null +++ b/Assets/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f87a054963b01dc4c8aa2e3ffedcca21 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/WorldAssets.meta b/Assets/WorldAssets.meta new file mode 100644 index 0000000..b49880d --- /dev/null +++ b/Assets/WorldAssets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7da0e8d0a6415f944aa43dff57b38ae3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/WorldAssets/Models.meta b/Assets/WorldAssets/Models.meta new file mode 100644 index 0000000..a4d7756 --- /dev/null +++ b/Assets/WorldAssets/Models.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c207356b78ec8e8499bb6047218dd104 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: