void OnLevelFinishedLoading(Scene scene, LoadSceneMode mode) { mCurrentSceneId = Parse(SceneManager.GetActiveScene().name); if (mCurScene != null) { mCurScene.OnExited(); } if (mNextScene != null) { mNextScene.OnEntered(mParam); } mCurScene = mNextScene; mNextScene = null; }