Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
 public void ResetStats()
 {
     RCC_Customization.ResetStats(RCC_SceneManager.Instance.activePlayerVehicle, GameObject.FindObjectOfType <RCC_Demo>().selectableVehicles[GameObject.FindObjectOfType <RCC_Demo>().selectedVehicleIndex]);
     CheckUIs();
 }