Reply To: Ch5, MessagingClientReceiver

Home Forums Books Mastering Unity 2D Game Development Ch5, MessagingClientReceiver Reply To: Ch5, MessagingClientReceiver


Quick Fix @Nguyen you have implemented BOTH the Singleton<MessagingManager> and an INSTANCE property.  You can only use one of the methods.


If you check the script in the download code sample in Ch6, you should see the full messaging Manager singleton implementation.

Basically, you have a property called “Instance” in your script that is overriding the Instance property in the Singleton base class.  This will likely cause a conflict and mean the class isn’t initialised property.


Hope this helps.

Simon (Darkside) Jackson