Пример #1
0
    public void SetDriveTrainModeByDropdown(Dropdown dropdown)
    {
        switch (dropdown.value)
        {
        case 0:
            RCC_Customization.SetDrivetrainMode(RCC_SceneManager.Instance.activePlayerVehicle, RCC_CarControllerV3.WheelType.FWD);
            break;

        case 1:
            RCC_Customization.SetDrivetrainMode(RCC_SceneManager.Instance.activePlayerVehicle, RCC_CarControllerV3.WheelType.RWD);
            break;

        case 2:
            RCC_Customization.SetDrivetrainMode(RCC_SceneManager.Instance.activePlayerVehicle, RCC_CarControllerV3.WheelType.AWD);
            break;
        }
    }
Пример #2
0
    public void SetDriveTrainModeByDropdown(Dropdown dropdown)
    {
        switch (dropdown.value)
        {
        case 0:
            RCC_Customization.SetDrivetrainMode(car, RCC_CarControllerV3.WheelType.FWD);
            break;

        case 1:
            RCC_Customization.SetDrivetrainMode(car, RCC_CarControllerV3.WheelType.RWD);
            break;

        case 2:
            RCC_Customization.SetDrivetrainMode(car, RCC_CarControllerV3.WheelType.AWD);
            break;
        }
    }