public void restart_game() { if (mGameManager.GS != NewGameManager.GameState.MENU) { mBackgroundManager.unload(); mBodyManager.unload(); mTransparentBodyManager.unload(); mBodyManager.unload(); mMusicManager.unload(); mGameManager.mModeNormalPlay.reset(); mGameManager.GS = NewGameManager.GameState.NONE; //Debug.Log("unloaded current character"); mCharacterBundleManager.cleanup(); //Resources.UnloadUnusedAssets(); //System.GC.Collect(); //Debug.Log("GCed assets"); //mTransitionCameraManager.go_to_play(); mTransitionCameraManager.reload(); ManagerManager.Log("restarted"); //HARD RESET WAY //Application.LoadLevel(Application.loadedLevel); } }