Expanding on the recoil effect by controlling distance and duration in the pushback function
Creating a recoil effect for characters when hit in a 2d ARPG in Unity C#