Game/Source/ModuleScene.cpp
bool ModuleScene::ChangeCurrentScene(uint index, int frames)
{
	if (isChangingScene)return true;
	isChangingScene = true;
	this->index = (SCENES)index;
	App->debug->ResetDebug();
	currentScene->CleanUp();
	currentScene = scenes[index];
	currentScene->Start();
	

	return true;
}
//CleanUp current scene, change current scene (index), Start current Scene
CleanUp current scene, change current scene (index), Start current Scene
CleanUp current scene change current scene ( index ) Start current Scene
bool ModuleScene::ChangeCurrentScene(uint index, int frames)
{
	if (isChangingScene)return true;
	isChangingScene = true;
	this->index = (SCENES)index;
	App->debug->ResetDebug();
	currentScene->CleanUp();
	currentScene = scenes[index];
	currentScene->Start();
	return true;
}
bool ModuleScene :: ChangeCurrentScene ( uint index , int frames ) { if ( isChangingScene ) return true ; isChangingScene = true ; this -> index = ( SCENES ) index ; App -> debug -> ResetDebug ( ) ; currentScene -> CleanUp ( ) ; currentScene = scenes [ index ] ; currentScene -> Start ( ) ; return true ; }
CleanUp current scene, change current scene (index), Start current Scene
CleanUp current scene change current scene ( index ) Start current Scene