dispose method

void dispose()

Implementation

void dispose(){
  material?.dispose();
  object?.dispose();
  geometry?.dispose();
}