You will want to provide a state _ exit ( ) if you need to clean up any events that you have requested in the current state , but do not expect in the next state 如果需要在当年状态下,清除事件,就可以用状态存在函数.而不用考虑下一个状态
The state _ exit ( ) handler is not called when an object is being deleted - all callbacks , handlers , sounds , etc , will be cleaned up automatically for you 状态存在函数不会在一个对象删除时候调用.所有的调用.指针,声音等都会对象删除时候自动清除
The state _ exit ( ) handler is not called when an ob < x > ject is being deleted - all callbacks , handlers , sounds , etc , will be cleaned up automatically for you 状态存在函数不会在一个对象删除时候调用.所有的调用.指针,声音等都会对象删除时候自动清除