Hello guys,
I am trying to send event through scripting but it doesn't seem to trigger in the FSM.
public void EndTurn()
{
GameObject gameManager = GameObject.FindGameObjectWithTag("Game Manager");
PlayMakerFSM gameManagerFSM = PlayMakerFSM.FindFsmOnGameObject(gameManager, "Turn Manager");
PlayMakerUtils.SendEventToGameObject(gameManagerFSM, gameManager, "Manually End Player Turn");
Debug.Log("Called " + gameManager + " " + gameManagerFSM);
}
The debug log fires but the fsm event does not. I checked the spelling of the event too.
Thanks,
jrDev