Listener argument
Posted: Mon Feb 25, 2019 3:49 pm
How do I get the argument on a listener? This is my custom condition script for Tracking message but I don¡t konw how to get the argument true / fasle:
public override void StartChecking(System.Action trueAction)
{
base.StartChecking(trueAction);
MessageSystem.AddListener(this, QuestMachineMessages.QuestTrackToggleChangedMessage, this.quest.id.ToString());
}
public void OnMessage(MessageArgs messageArgs)
{
if ((messageArgs.message == QuestMachineMessages.QuestTrackToggleChangedMessage) && (messageArgs.parameter == this.quest.id.ToString()) && messageArgs.)
{
SetTrue();
}
}
public override void StartChecking(System.Action trueAction)
{
base.StartChecking(trueAction);
MessageSystem.AddListener(this, QuestMachineMessages.QuestTrackToggleChangedMessage, this.quest.id.ToString());
}
public void OnMessage(MessageArgs messageArgs)
{
if ((messageArgs.message == QuestMachineMessages.QuestTrackToggleChangedMessage) && (messageArgs.parameter == this.quest.id.ToString()) && messageArgs.)
{
SetTrue();
}
}