Hello community!
I’m new on Unity and I just started to use it. I watched the tuto on “Angry Bird” game like (http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/making-angry-birds-style-game?playlist=17093) but after the first part it doesn’t work. I think it comes from my script.
Here is the error I have when I launch the game and ty t control the asteroid :
MissingReferenceException: The object of type ‘SpringJoint2D’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ProjectileDragging.OnMouseDown () (at Assets/Scripts/ProjectileDragging.cs:66)
UnityEngine.SendMouseEvents:smile:oSendMouseEvents(Int32)
My script is in the “Attached Files”.
I also put a screeshot of what the game looks like when I luanch it.
I hope somebody could help me! ![]()
2358136–159854–ProjectileDragging.cs (2.68 KB)
