Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Uroboros on November 12, 2014, 06:10:39 AM

Title: Change state of another fsm
Post by: Uroboros on November 12, 2014, 06:10:39 AM
Hi, i was having some difficulty understanding how to change the state of an FSM attached to another game object.

I have a Leaderboards panel and Settings panel
And id like to create a see-saw effect where if the button to open one panel is clicked it will change the state of the other panel to close (if it is open it will close, if it is closed it will do nothing)

I got this desired functionality somewhat working with the send event action but broadcasting click events on both FSMs will make them both open simultenously.

Any suggestions?

Thank you!
Title: Re: Change state of another fsm
Post by: jeanfabre on November 27, 2014, 01:11:11 AM
Hi,

 use the Go to State By Name (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/StateMachine/GoToStateByName.cs) action.

 you can use the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) to get it direct in Unity.

 Bye

 Jean