public void LoadStadium(StadiumSize size, StadiumType venueType) { Size = size; VenueType = venueType; StartCoroutine(Load($"{RootAssetPath}/{size}_Stadium_{venueType}.prefab", StadiumContainer)); }
/// <summary> /// Initializes a new instance of a <see cref="Stadium"/> class. /// </summary> /// <param name="name">Name of the stadium.</param> /// <param name="city">City of the stadium.</param> /// <param name="capacity">Capacity of the stadium.</param> /// <param name="geoLatitude">Geographical latitude.</param> /// <param name="geoLongitude">Geographical longitude.</param> /// <param name="type">Type of the stadium (open or covered).</param> private Stadium(string name, string city, int capacity, float geoLatitude, float geoLongitude, StadiumType type) { this.Name = name; this.City = city; this.Capacity = capacity; this.GeoLatitude = geoLatitude; this.GeoLongitude = geoLongitude; this.Type = type; }
public void SetVenueType(StadiumType type) { VenueType = type; LoadStadium(Size, VenueType); }