Unsure if unity or just me being new

Hey All! I started Unity in August, part of the Uni course I’m doing, also kinda new to programming so everything’s new to me but I have one specific question. I’m currently working on an assessment (GitHub - e2ik/IGD-Assessment4 at feature-GhostMovement).

When I attach the tweener script for the first time onto my gameobject, everything is fine. It’ll move smoothly with no issues. The problem appears when I close unity and reopen it. All of a sudden that object will now have jerky movements. When I remove the Tweener and reattach it to the gameoject it returns to being smooth.

The gist is we’re remaking pacman. This issue also appears if I duplicate my pacman. But as long as I remove the Tweener Component and reattach it to the gameobject it’ll return to smooth movement.

I’m at a loss, I’m not sure if it’s the script or if it’s some weird unity setting I need to enable.

EDIT: Visual example of what I’m trying to explain:

  1. When Tweener is attached for the first time or reattached while Unity is running:

  2. When I close and reopen Unity and hit run:

Oh okay, must be one of those, spent a while searching for answers but then find nothing then to post about it only to work out the answer within 10 minutes LOL.

It was a matter of the script execution order, changing the order fixed this issue