From fbce40969d1f94dcc1fd6b25bcef0735ee099227 Mon Sep 17 00:00:00 2001 From: JoshuaReason Date: Sun, 27 Jan 2019 13:56:29 +1100 Subject: [PATCH] fixed tile coping mirror --- Assets/Scipts/Map.cs | 6 +++++- Assets/Shaders.meta | 8 ++++++++ Assets/WorldAssets.meta | 8 ++++++++ Assets/WorldAssets/Models.meta | 8 ++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Assets/Shaders.meta create mode 100644 Assets/WorldAssets.meta create mode 100644 Assets/WorldAssets/Models.meta 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: