update samples

pull/62/head
hevinci 2022-12-20 16:17:16 +08:00
parent 4e759134bd
commit b322a848ba
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ internal class FsmClearCache : IStateNode
{ {
PatchEventDefine.PatchStatesChange.SendEventMessage("清理未使用的缓存文件!"); PatchEventDefine.PatchStatesChange.SendEventMessage("清理未使用的缓存文件!");
var package = YooAsset.YooAssets.GetAssetsPackage("DefaultPackage"); var package = YooAsset.YooAssets.GetAssetsPackage("DefaultPackage");
var operation = package.ClearPackageUnusedCacheFilesAsync(); var operation = package.ClearUnusedCacheFilesAsync();
operation.Completed += Operation_Completed; operation.Completed += Operation_Completed;
} }
void IStateNode.OnUpdate() void IStateNode.OnUpdate()