From a874d17798941159f17f53c0fd1b3e744c56e3c9 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 10 Oct 2023 12:17:54 +0800 Subject: [PATCH] update samples --- .../Scripts/Runtime/LoadAssetsByTagOperation.cs | 3 +++ .../Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs | 2 ++ .../GameScript/Runtime/PatchLogic/PatchOperation.cs | 3 +++ 3 files changed, 8 insertions(+) diff --git a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Runtime/LoadAssetsByTagOperation.cs b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Runtime/LoadAssetsByTagOperation.cs index 20bfc09..a2b5bac 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Runtime/LoadAssetsByTagOperation.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Runtime/LoadAssetsByTagOperation.cs @@ -93,6 +93,9 @@ public class LoadAssetsByTagOperation : GameAsyncOperation where TObjec SetFinish(true); } } + protected override void OnAbort() + { + } private void SetFinish(bool succeed, string error = "") { Error = error; diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs index 2c9846e..71e4f1c 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitializePackage.cs @@ -91,6 +91,8 @@ internal class FsmInitializePackage : IStateNode } else { + var version = package.GetPackageVersion(); + Debug.Log($"Init resource package version : {version}"); _machine.ChangeState(); } } diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/PatchOperation.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/PatchOperation.cs index cb55a02..93f9421 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/PatchOperation.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/PatchOperation.cs @@ -64,6 +64,9 @@ public class PatchOperation : GameAsyncOperation } } } + protected override void OnAbort() + { + } /// /// 接收事件