ScriptComponent.onDispose() method

Invoked when the game is about to be destroyed. Use this for final cleanup, like releasing resources or unsubscribing from events

Signature:

onDispose(): void;

Returns:

void