I am getting this error and I suspect its because 'slot' isn't defined in my script.
NullReferenceException: Object reference not set to an instance of an object
puzzlepiece.OnMouseUp () (at Assets/scripts/puzzlepiece.cs:59)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32)
No crashes, game runs fine except for this.
How do I get the engine to recognize the 'slot' object so the code will run? Using a 2D collider on the slot, btw
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.