dispose method
void
dispose()
Implementation
void dispose(){
planeMesh?.dispose();
boxMesh?.dispose();
objects.dispose();
if(currentBackground is Texture){
currentBackground.dispose();
}
}
void dispose(){
planeMesh?.dispose();
boxMesh?.dispose();
objects.dispose();
if(currentBackground is Texture){
currentBackground.dispose();
}
}