How to make animation flow curved in blender

I want to make an animation like in this video from blender to use in unity i have tried many ways but none worked