Hi. I can't find anything useful on web so i would like to ask how to access fsm from c# script. I have a manager with few fsm's attached to it called pop_up, purchase, leaderboard, achievement etc. When i want to access any of this it works only if i call them FSM. Once i change the name it doesn't work anymore so i would like to know what do i need to change on the script below. Really appreciate your help. Thank you.
PlayMakerFSM fsmFireEvent;
void Start ()
{
fsmFireEvent = gameObject.GetComponent<PlayMakerFSM>();
}
public void Purchase ()
{
fsmFireEvent.Fsm.Event ("purchase_no_1");
}