Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: zhuxianzhi on August 30, 2017, 05:44:53 AM
-
GameObject has multiple states, using playMakerFsm.Fsm always the first one that can be obtained in a similar way? For example: playMakerFsm.GetFsm ("name")
private void OnTriggerEnter(Collider other)
{
var playMakerFsm = other.GetComponent<PlayMakerFSM>();
// playMakerFsm.Fsm
}
-
Use
var playMakerFsm = PlayMakerFSM.FindFsmOnGameObject(other, "name");
where "name" is the name of the FSM and 'other' is the GameObject with the FSM you want to retrieve.
-
Thank you very much