Script does not work after closing and reopening the project

Hi everyone. I’m currently having a problem that is making me go insane since i really don’t know how to fix it. I have this one script called “shopManager”, attached to an empty gameObject called “gameManager”. The script work, but when I close the project and then reopen it, it just stop working until i remove the component from the gameManager and give it again. It is kind of annoying. Anyone can help me resolve this? Thanks!

Do you have domain reload turned off?

i honestly don’t know. How can i check it?