private bool onWallCollision() { Vector3 truckPosition = truck.transform.localPosition; return(blocks.BlockHit(truckPosition.x)); }