Reply To: Chapter 11-12 Code issue

Home Forums Books Mastering Unity 2D Game Development Chapter 11-12 Code issue Reply To: Chapter 11-12 Code issue


Curious. At what point did this occur and was the first time you saw it when you added the Menu code in Ch 11?

The error line it is referring to is when it is trying to subscribe to the Messaging Manager on line 7 of the MessagingClientReceiver.cs script.


The possible reason for this could be if the  MessagingManager hadn’t been updated to a Singleton class.

Can you confirm if you have updated the beginning of your MessagingManager script as follows:

public class MessagingManager : Singleton<MessagingManager>


protected MessagingManager() { } // guarantee this will be always a singleton only – can’t use the constructor!


Simon (Darkside) Jackson