VR autowalk function unity 5

Hello guys

I follow this tutorial on youtube how to make an autowalk feature for the google cardboard VR.

My problem is the script doesn’t work for unity 5.2.

In the video Daniel explains to put the FPS controller script on the “head” object.
But since unity 5 it would only work on the CardboardMain object.

I tried working my way around it by chaning the code to look at the CarboardMain instead of the head object, but I cant get it to work.

Any ideas on an easy autowalk function for the VR ?
Thanks

Apologies for writing a commment in the answer section. Here is the solution which I found to work.

I added the script by Juppotto to the CardboardMain object.

This works well with Unity 5.3 but I have not tried with 5.2.

I found the magnet unresponsive as a movement trigger. This could well be due to the phone I am using to test. I am using “Walk When Look Down” to start and stop walking. I find Threshold Angle of about 5 degrees works well.