public Seat GetSeat(SeatAlignment alignment) { return(_seats.FirstOrDefault(x => x.Alignment == alignment)); }
public Transform GetSeatTransform(SeatAlignment alignment) { return(GetSeat(alignment).Parent); }
private void AttachSeat(Transform parent, SeatAlignment alignment) { _seats.Add(new Seat { Parent = parent, Alignment = alignment }); }
public Transform GetSeatTransform(SeatAlignment alignment) { var seat = GetSeat(alignment); return(seat != null ? seat.Parent : null); }
public Transform GetSeatTransform(SeatAlignment alignment) { return GetSeat(alignment).Parent; }
public Seat GetSeat(SeatAlignment alignment) { return _seats.FirstOrDefault(x => x.Alignment == alignment); }