|
|
@ -7,7 +7,7 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
GameObject LocalPlayer; |
|
|
|
List<GameObject> Players = new List<GameObject>(); |
|
|
|
|
|
|
|
|
|
|
|
public GameObject[] Tiles; |
|
|
|
public List<GameObject> Landmarks; |
|
|
|
|
|
|
@ -16,10 +16,10 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
public List<GameObject> Veggies; |
|
|
|
//Minimum and maximum values for the map
|
|
|
|
public float minX; |
|
|
|
public float maxX; |
|
|
|
public float minZ; |
|
|
|
public float maxZ; |
|
|
|
public float minX { get { return (-MapDimensions.x * (TileSize / 2)); } } |
|
|
|
public float maxX { get { return (MapDimensions.x * (TileSize / 2)); } } |
|
|
|
public float minZ { get { return (-MapDimensions.y * (TileSize / 2)); } } |
|
|
|
public float maxZ { get { return (-MapDimensions.y * (TileSize / 2)); } } |
|
|
|
|
|
|
|
|
|
|
|
#region StartupFunctions
|
|
|
@ -178,7 +178,7 @@ public class Map : MonoBehaviour |
|
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform.parent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|