Modify script for straight projectile motion in Unity