Ejemplo n.º 1
0
    private bool onWallCollision()
    {
        Vector3 truckPosition = truck.transform.localPosition;

        return(blocks.BlockHit(truckPosition.x));
    }