示例#1
0
 public Seat GetSeat(SeatAlignment alignment)
 {
     return(_seats.FirstOrDefault(x => x.Alignment == alignment));
 }
示例#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
     });
 }
示例#5
0
        public Transform GetSeatTransform(SeatAlignment alignment)
        {
            var seat = GetSeat(alignment);

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