playMaker

Author Topic: Subscribing to a function in a custom action  (Read 446 times)

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Subscribing to a function in a custom action
« on: January 17, 2022, 08:03:01 AM »
Do subscriptions to functions in custom actions remain if the state finished?
Should I unsubscribe before finishing? is it not recommended?

I am doing it to avoid heavy update cycles when state action is called.

thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Subscribing to a function in a custom action
« Reply #1 on: January 17, 2022, 09:52:34 AM »
hi.
try unsubscribe in :

Code: [Select]
     public override void OnExit()