コード例 #1
0
        public void EnterVehicle(IPawn pawn, VehicleSeatIndex seatIndex, bool @override = false)
        {
            if (!(Seats.GetSeat(seatIndex) is VehicleSeat seat))
            {
                return;
            }

            if (@override && seat.IsOccupied())
            {
                seat.Occupy(pawn);
            }
            else if (seat.IsOccupied())
            {
                seat.Occupy(pawn);
            }
        }