private void SetWheelShow(VehicleUiWheelIndex uiIndex, bool isWheelBroke) { Transform wheel = null; wheel = CurVehicle.GetWheel(uiIndex); if (wheel != null) { UIUtils.SetActive(wheel, isWheelBroke); } }
private void SetSeatState(VehicleSeatIndex uiIndex, bool isOccupied) { Transform seat = null; seat = CurVehicle.GetSeat(uiIndex); if (seat != null) { UIUtils.SetActive(seat, isOccupied); } }