Jump to content

General state shutdown function


Anderberg
 Share

Recommended Posts

Is there any easy way to set a general state shutdown callback function?

 

What I am looking for is essentially a listener. When a state is shutdown, a function should be called.

When using states I can create a shutdown function, but that one is only triggered in that specific state.

Do I have to create a superclass that all my states inherit or is there another way?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...