Ejemplo n.º 1
0
    public bool checkStatus         = false;    //if we found any collisions there

    void Start()
    {
        carControl.SetCar(this);
        myBody.tag    = "CarBody"; //The body gets a collision tag of CarBody
        transform.tag = "Car";     //the car object gets a collision tag of Car
        restart();
    }