public void ResetStats() { int selectedVehicleIndex = 0; if (GameObject.FindObjectOfType <RCC_Demo> ()) { selectedVehicleIndex = GameObject.FindObjectOfType <RCC_Demo> ().selectedVehicleIndex; } RCC_Customization.ResetStats(RCC_SceneManager.Instance.activePlayerVehicle, RCC_DemoVehicles.Instance.vehicles[selectedVehicleIndex]); CheckUIs(); }
public void ResetStats() { RCC_Customization.ResetStats(RCC_SceneManager.Instance.activePlayerVehicle, GameObject.FindObjectOfType <RCC_Demo>().selectableVehicles[GameObject.FindObjectOfType <RCC_Demo>().selectedVehicleIndex]); CheckUIs(); }