|
@ -7,13 +7,14 @@ public class Map : MonoBehaviour |
|
|
|
|
|
|
|
|
GameObject LocalPlayer; |
|
|
GameObject LocalPlayer; |
|
|
List<GameObject> Players = new List<GameObject>(); |
|
|
List<GameObject> Players = new List<GameObject>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public GameObject[] Tiles; |
|
|
public GameObject[] Tiles; |
|
|
public List<GameObject> Landmarks; |
|
|
public List<GameObject> Landmarks; |
|
|
|
|
|
|
|
|
public int TileSize = 100; |
|
|
public int TileSize = 100; |
|
|
public Vector2 MapDimensions; |
|
|
public Vector2 MapDimensions; |
|
|
|
|
|
|
|
|
|
|
|
public List<GameObject> VeggieLocations; |
|
|
//Minimum and maximum values for the map
|
|
|
//Minimum and maximum values for the map
|
|
|
public float minX; |
|
|
public float minX; |
|
|
public float maxX; |
|
|
public float maxX; |
|
@ -177,6 +178,7 @@ public class Map : MonoBehaviour |
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform.parent); |
|
|
Instantiate(Landmarks[rand], LP.transform.position, Quaternion.identity, tile.transform.parent); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|