Restoring a previous state

Announcements, support questions, and discussion for Quest Machine.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Restoring a previous state

Post 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
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Restoring a previous state

Post 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.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Restoring a previous state

Post by GorkaGames »

Everything starts to work great now, Thanks!!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Restoring a previous state

Post by Tony Li »

I'm glad things are working well now! Glad to help.
Post Reply