diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index e35ba7a..fc99079 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -45,10 +45,10 @@ public class Map : MonoBehaviour Player PS = Player.GetComponent(); Transform PT = Player.transform; Transform model = PT.Find("Model"); - PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x + (minX - TileSize /2), PT.position.y, PT.position.z), transform.rotation, PT).gameObject); - PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x + (maxX + TileSize / 2), PT.position.y, PT.position.z), transform.rotation, PT).gameObject); - PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ - TileSize/2), transform.rotation, PT).gameObject); - PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + maxZ + TileSize /2), transform.rotation, PT).gameObject); + PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x -TileSize * MapDimensions.x, PT.position.y, PT.position.z), transform.rotation, model).gameObject); + PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x + TileSize * MapDimensions.x, PT.position.y, PT.position.z), transform.rotation, model).gameObject); + PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z - TileSize * MapDimensions.y), transform.rotation, model).gameObject); + PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + TileSize * MapDimensions.y), transform.rotation, model).gameObject); foreach (GameObject dummie in PS.dummies) { 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: