update extension sample

新增示例代码HandleBaseExtension
This commit is contained in:
何冠峰
2024-12-27 17:34:22 +08:00
parent 7f566e5388
commit dc21696ae1
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using YooAsset;
public static class HandleBaseExtension
{
public static bool IsSucceed(this HandleBase thisHandle)
{
return thisHandle.IsDone && thisHandle.Status == EOperationStatus.Succeed;
}
}