public Place GetPlace(PlaceManager.Place placeType, int index) { try { return(_places[placeType][index]); } catch { throw new ArgumentOutOfRangeException(); } }
public void PlaceBusyChanged(PlaceManager.Place place) { //Debug.Log($"{place}s поменяли свое состояние на {!_classRoom.PlaceAgent.HasFreePlace(place)}"); Set($"Place_{place.ToString()}_All_Busy", !_classRoom.PlaceAgent.HasFreePlace(place)); }
public bool HasFreePlace(PlaceManager.Place placeType) { return(_places[placeType].HasFreePlace()); }
public Place GetRandomFreePlace(PlaceManager.Place placeType) { return(_places[placeType].GetRandomFreePlace()); }