Jump to content

null objects variables when kill() is called


royibernthal
 Share

Recommended Posts

When kill() is called in an object that for instance extends Sprite, should I manually null custom variables I added to it?

 

If so, is there a way to override the kill function - nulling the object then calling super.kill()? Or is there some kind of function call when an object is killed? (e.g. onKill())

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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