I am at the end of Brackeys tutorial on How to Make a Game. I am at the final episode, the part where the game is built and run. My game works perfectly when running it through Unity, the trouble is when I build the game, I get the following error:
Assets/Scripts/Score.cs(7,9): error CS0012: The type `UnityEngine.MonoBehaviour’ is defined in an assembly that is not referenced. Consider adding a reference to assembly `UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’
The error seems to target the deceleration of the score text in that c# file. I downloaded the finished game from the dev assets website to see if it was my personal error of some kind, but the finished game had the exact same error. Can someone please explain this error to me and how to fix it, any help would be greatly appreciated!