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