I have just downloaded Explosion/Detonator Framework
I've the following scenario:
I then got the following error: "NullReferenceException DetonatorSound.Update () (at Assets/Standard Assets/Detonator/System/DetonatorSound.cs:27)"
What did I do wrong/miss? Is this a correct way to do it?
Thanks in advance for your help.
Hi All, the link to the package seems to redirect. Where can I get this package?
Asset Store :
Detonator Explosion Framework
Answer by pion
Aug 06, 2011 at 09:16 PM
After adding the following in DetonatorSound.cs:
override public void Init()
_soundComponent = (AudioSource)gameObject.AddComponent ("AudioSource");
The NullReferenceException error message went away.
well done. please mark your reply as a solution.
Answer by roamcel
Aug 05, 2011 at 12:29 PM
I experience the same problem, so it looks like a bug.
Answer by herp johnson
Nov 07, 2012 at 12:37 AM
He means add this before the override public void Init():
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
7 People are following this question.
Trouble with Detonator
Detonator -- Null reference error when adding component to empty game object
Setting timed detonations with the detonator kit
Unity Explosion Framework didn't work
Drawing a texture results in nullreferenceexception