Esempio n. 1
0
    void Stage2()
    {
        if (checkpoints_.Progress() >= 0.5f && test_ == TestingType.TT_DYNAMIC)
        {
            foreach (GameObject car in GameObject.FindGameObjectsWithTag("Car"))
            {
                car.GetComponent <Car>().ToggleImprovements(true);
            }
        }

        carComponent_.enabled = true;
        if (checkpoints_.Complete())
        {
            stage_ = 3;
        }
    }