Page 2 of 2

Re: Restoring a previous state

Posted: Wed Oct 17, 2018 6:32 pm
by GorkaGames
Ok, second error gone but first persists:

Assets/Scripts/Quests/QuestNodeControllerSaver.cs(6,14): error CS0737: `QuestNodeControllerSaver' does not implement interface member `PixelCrushers.IMessageHandler.OnMessage(PixelCrushers.MessageArgs)' and the best implementing candidate `QuestNodeControllerSaver.OnMessage(PixelCrushers.MessageArgs)' is not public

Re: Restoring a previous state

Posted: Wed Oct 17, 2018 7:37 pm
by Tony Li
Change this line:

Code: Select all

void OnMessage(MessageArgs messageArgs) {
to this:

Code: Select all

public void OnMessage(MessageArgs messageArgs) {
This way the MessageSystem can call the method.

I updated the code in my previous reply, too.

Re: Restoring a previous state

Posted: Wed Oct 17, 2018 8:47 pm
by GorkaGames
Everything starts to work great now, Thanks!!

Re: Restoring a previous state

Posted: Wed Oct 17, 2018 9:15 pm
by Tony Li
I'm glad things are working well now! Glad to help.