Script works only after reloading Unity

Hi, when I change a script the script works only after reloading Unity. I tried to reinstall Unity but nothing.
Thanks in advance.

Make sure automatic asset refresh is enabled:
Edit → Preferences → General → Auto Refresh

1 Like

It works. Thank you very much.