Well, it compiles
Changed time var to float
Changed speed and size of unit
Changed origin of unit to actual center