playMaker

Author Topic: Request OnEnable/OnDisable functions  (Read 2215 times)

savgrace

  • Playmaker Newbie
  • *
  • Posts: 1
Request OnEnable/OnDisable functions
« on: May 05, 2016, 06:26:26 PM »
There REALLY needs to be OnEnable() and OnDisable() function overrides in the FsmStateAction class.  These would be EXTREMELY useful for adding and removing listeners from event dispatchers. These listeners, in our example, need to persist when the State is not currently "Active", and to be removed when the PlayMakerFSM component is disabled. It would make for some much cleaner code in our case.
« Last Edit: May 05, 2016, 06:28:23 PM by savgrace »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Request OnEnable/OnDisable functions
« Reply #1 on: May 26, 2016, 03:07:09 AM »
Hi,

Do you mean when the Fsm or the Gamobject is activate or deactivated? or when an action enters and leaves a state?


Bye,

 Jean