I'm having a problem with the trigger error when in build mode. In the editor, everything is fine.
Before this project, I also have the same issue with the trigger collider throwing error message in build mode only.
This one is basically calling a method from other game object script when the thing is triggered with the "Player" tag. I'm sure had already connected all of the references in Start().
Does anyone know how to fix this? Been looking around but can't seem to find the exact same problem as mine, even though it's the same error message.
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at CollectibleItem.OnTriggerEnter2D (UnityEngine.Collider2D collision) [0x00011] in C:\Users\Billy\Unity_Projects\Jump and Run Project\Assets\_Re\Scripts\CollectibleItem.cs:30
(Filename: C:/Users/Billy/Unity_Projects/Jump and Run Project/Assets/_Re/Scripts/CollectibleItem.cs Line: 30)
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at GameManager.GameOver () [0x00001] in C:\Users\Billy\Unity_Projects\Jump and Run Project\Assets\_Re\Scripts\GameManager.cs:42
at EnemyObstacle.OnTriggerEnter2D (UnityEngine.Collider2D collision) [0x0001d] in C:\Users\Billy\Unity_Projects\Jump and Run Project\Assets\_Re\Scripts\EnemyObstacle.cs:28
(Filename: C:/Users/Billy/Unity_Projects/Jump and Run Project/Assets/_Re/Scripts/GameManager.cs Line: 42)