playMaker

Author Topic: Assign specific PlayMakerFSM from multiple PlayMakerFSM to an gameObject.  (Read 1093 times)

Softme

  • Playmaker Newbie
  • *
  • Posts: 11
I have a gameObject with two PlayMakerFSM component fsmA and fsmB.
I want to drag this gameObject to other gameObject's public variable fsmA and access it in script:
Code: [Select]
fsmA .Fsm.Event("event name");But the unity assign fsmB by default. I fix it by disabling fsmB and reassign gameObject.

I wonder is there better practice to deal with it?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
hi.
You should drag/drop the component.

select the fsm where you want to drop, then press the 'Lock'
then you can select othe objects without loosing focus on the fsm.

Softme

  • Playmaker Newbie
  • *
  • Posts: 11
Thank you !