Exemplo n.º 1
0
 public CommuterNavPoint AssignSeat()
 {
     if (seats_FREE.Count > 0)
     {
         CommuterNavPoint _seat = seats_FREE[(Random.Range(0, seats_FREE.Count - 1))];
         seats_TAKEN.Add(_seat);
         seats_FREE.Remove(_seat);
         return(_seat);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public void VacateSeat(CommuterNavPoint _seat)
 {
     seats_TAKEN.Remove(_seat);
 }