Hi,
I'm using Playmaker 1.7.8.4 in my game.
At the end of game stage a result popup is shown by a code in Unity like below.
Most of time the event message is sent to FSM correctly,
but about one out of thirty times FSM can not receive the event
event though the game object with the FSM always active and never destroyed.
BroadcastEvent is called in a function which was called by Invoke function,
but every time Invoke worked correctly.
I also put some logs between code and actions in FSM to check the state of
FSM with the event is called or not.
Let me get out of this weird trouble, please.
Thanks
void AFunction()
{
Invoke("ShowRewardWin", 3.0f);
}
void ShowRewardWin()
{
//...........
PlayMakerFSM.BroadcastEvent("PMGUI/Global/GameStageEnd");