Useful scripts for Unity 3D