Here is my problem:
I have a script (in unity, c#), instantiated in multiple objects, that should send messages to a unique object. E.g.:
public delegate void DeathDelegate(string name, float q)
public event DeathDelegate OnDeathEvent;
But when an instantiated object (with the same script) try to send a message comes the error
NullReferenceException: Object reference not set to an instance of an object
I understood that is not possible to do so with a delegate on multiple instantiated objects but I can grasp how could achieve that in an other way. Any help would be appreciated! Thx!!