Browse Source

fixed tile coping mirror

master
JoshuaReason 5 years ago
parent
commit
fbce40969d
4 changed files with 29 additions and 1 deletions
  1. +5
    -1
      Assets/Scipts/Map.cs
  2. +8
    -0
      Assets/Shaders.meta
  3. +8
    -0
      Assets/WorldAssets.meta
  4. +8
    -0
      Assets/WorldAssets/Models.meta

+ 5
- 1
Assets/Scipts/Map.cs View File

@ -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]);
}
}

+ 8
- 0
Assets/Shaders.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f87a054963b01dc4c8aa2e3ffedcca21
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/WorldAssets.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7da0e8d0a6415f944aa43dff57b38ae3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/WorldAssets/Models.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c207356b78ec8e8499bb6047218dd104
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save