Esempio n. 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;
        }
    }
Esempio n. 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;
        }
    }