Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (carBehaviour.IsCarOff())
        {
            carBehaviour.StartCar();
        }

        ////No movement if car is off
        //if (!carBehaviour.CheckLights())
        //{
        //    shouldMove = false;
        //    return;
        //}
        //if (Input.GetMouseButtonDown(0))
        //{
        //    shouldMove = true;
        //}
        //if (Input.GetMouseButtonUp(0))
        //{
        //    shouldMove = false;
        //}
    }