private void ExitToMainMode() { sceneContiner.SetActive(false); menuSceneController.SetInactive(); controllerRaycast.SetActive(false); string tmpPath = PathHelper.GetSceneTmpPngPath(scene.Guid); if (File.Exists(tmpPath)) { File.Delete(tmpPath); } exitToMainModeSubject.OnNext(Unit.Default); scene.Destroy(); scene = null; }