public void SetMaximumSpeedByInputField(InputField inputField) { RCC_Customization.SetMaximumSpeed(RCC_SceneManager.Instance.activePlayerVehicle, StringToFloat(inputField.text, 200f)); inputField.text = RCC_SceneManager.Instance.activePlayerVehicle.maxspeed.ToString(); }
public void SetMaximumSpeedByInputField(InputField inputField) { RCC_Customization.SetMaximumSpeed(car, StringToFloat(inputField.text, 200f)); inputField.text = car.maxspeed.ToString(); }