private void Scene_OnStateRefreshed(ParcelScene scene) { SceneLoadingStatus refreshedScene = new SceneLoadingStatus { sceneId = scene.GetInstanceID(), componentsLoading = scene.sceneLifecycleHandler.disposableNotReadyCount }; switch (scene.sceneLifecycleHandler.state) { case SceneLifecycleHandler.State.WAITING_FOR_COMPONENTS: AddOrUpdateLoadedScene(refreshedScene); break; case SceneLifecycleHandler.State.READY: scene.sceneLifecycleHandler.OnStateRefreshed -= Scene_OnStateRefreshed; break; } RefreshFeedbackMessage(); }