So I’ve spent almost 1 week trying to solve the fact that my game worked fine in the editor but not in the build. I spent most of my time configuring the execution order and doublechecking that I used Awake and Start methods correctly. Nothing helped as I still got a null reference in one of my scripts. I then changed from finding with tag to simply finding the type, and to my surprise it worked! Now my question is what’s going on? There is obviously something wrong with the tag. restarting Unity does not solve it. The player object is a prefab placed in the scene from start, it is never deactivated during the entire runtime. Even the Tag is the unity default “Player” tag.
Thanks in advance!