Here you will find the scripts I'm using in my unity project