internal ISceneCacheInfo ExtractSceneCacheInfo(bool forceOpen) { if (IsSceneCacheOpened()) { return(m_sceneCacheInfo); } if (!forceOpen) { return(null); } SceneCacheData tempSceneCache = SceneCacheData.Open(m_sceneCacheFilePath); if (!tempSceneCache) { return(null); } SceneCacheInfo ret = new SceneCacheInfo(); UpdateSceneCacheInfo(ret, tempSceneCache); tempSceneCache.Close(); return(ret); }
public void CloseCache() { if (m_sceneCache) { m_sceneCache.Close(); if (m_logging) { Debug.Log(string.Format("SceneCachePlayer: cache closed ({0})", m_cacheFilePath)); } } m_timePrev = -1; }