destroy method

bool destroy()

Whether this should be destroyed or not.

It will be called once per component per loop, and if it returns true, BaseGame will mark your component for deletion and remove it before the next loop.

Implementation

bool destroy() => false;