onDestroy method

void onDestroy()

Called right before the component is destroyed and removed from the game

Implementation

void onDestroy() {}