コード例 #1
0
 private void ClearAssets(long startTimestamp, long endTimestamp)
 {
     object[] args = new object[] { startTimestamp, endTimestamp, endTimestamp - startTimestamp };
     Log.LoadingScreen.Print("LoadingScreen.ClearAssets() - START startTimestamp={0} endTimestamp={1} diff={2}", args);
     AssetCache.ClearAllCachesBetween(startTimestamp, endTimestamp);
     ApplicationMgr.Get().UnloadUnusedAssets();
 }
コード例 #2
0
    public static void ClearAllCachesSince(long sinceTimestamp)
    {
        long endTimestamp = TimeUtils.BinaryStamp();

        AssetCache.ClearAllCachesBetween(sinceTimestamp, endTimestamp);
    }