Example #1
0
 public Seat GetSeat(SeatAlignment alignment)
 {
     return(_seats.FirstOrDefault(x => x.Alignment == alignment));
 }
Example #2
0
 public Transform GetSeatTransform(SeatAlignment alignment)
 {
     return(GetSeat(alignment).Parent);
 }
 private void AttachSeat(Transform parent, SeatAlignment alignment)
 {
     _seats.Add(new Seat { Parent = parent, Alignment = alignment });
 }
 private void AttachSeat(Transform parent, SeatAlignment alignment)
 {
     _seats.Add(new Seat {
         Parent = parent, Alignment = alignment
     });
 }
Example #5
0
        public Transform GetSeatTransform(SeatAlignment alignment)
        {
            var seat = GetSeat(alignment);

            return(seat != null ? seat.Parent : null);
        }
Example #6
0
 public Transform GetSeatTransform(SeatAlignment alignment)
 {
     return GetSeat(alignment).Parent;
 }
Example #7
0
 public Seat GetSeat(SeatAlignment alignment)
 {
     return _seats.FirstOrDefault(x => x.Alignment == alignment);
 }