KeyValuePair <sbyte, VehicleSeat> GetSeatKeyValuePairForPassenger(Unit passenger) { foreach (var pair in Seats) { if (pair.Value.Passenger.Guid == passenger.GetGUID()) { return(pair); } } return(Seats.Last()); }
KeyValuePair <sbyte, VehicleSeat> GetSeatKeyValuePairForPassenger(Unit passenger) { foreach (var pair in Seats) { if (pair.Value.Passenger.Guid == passenger.GetGUID()) { return(pair); } } return(Seats.Last()); }