animation.on 或者 animationState.on 之后,如果不 off,在 node destroy 或者 put 到 node pool 之后,会不会有问题?
cleanup会执行eventManager.removeListeners(this);
removeChild的参数好像默认是true,就会cleanup
destroy一般我都写一下,官方文档写的也不太清楚,反正写一下避免内存泄漏
animation.on 或者 animationState.on 之后,如果不 off,在 node destroy 或者 put 到 node pool 之后,会不会有问题?
cleanup会执行eventManager.removeListeners(this);
removeChild的参数好像默认是true,就会cleanup
destroy一般我都写一下,官方文档写的也不太清楚,反正写一下避免内存泄漏