diff --git a/Assets/00.StaryEvo/Editor/com.stary.evo.editor.asmdef b/Assets/00.StaryEvo/Editor/com.stary.evo.editor.asmdef index b5630fe..e2bceb6 100644 --- a/Assets/00.StaryEvo/Editor/com.stary.evo.editor.asmdef +++ b/Assets/00.StaryEvo/Editor/com.stary.evo.editor.asmdef @@ -3,10 +3,10 @@ "rootNamespace": "", "references": [ "GUID:d1a793c2b6959e04ea45b972eaa369c8", + "GUID:2373f786d14518f44b0f475db77ba4de", "GUID:c5ecc461727906345a35491a0440694f", "GUID:4d1926c9df5b052469a1c63448b7609a", - "GUID:e34a5702dd353724aa315fb8011f08c3", - "GUID:9343e3f36d5deca4880d49f48b3fa2b1" + "GUID:e34a5702dd353724aa315fb8011f08c3" ], "includePlatforms": [ "Editor" diff --git a/Assets/00.StaryEvo/Runtime/DomainBase.cs b/Assets/00.StaryEvo/Runtime/DomainBase.cs deleted file mode 100644 index 51a8064..0000000 --- a/Assets/00.StaryEvo/Runtime/DomainBase.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Threading.Tasks; -using UnityEngine; -using UnityEngine.Events; - -namespace Stary.Evo -{ - /// - /// 热更基类,应该继承的基类 - /// - public class DomainBase : MonoBehaviour - { - /// - /// 触发Domain时,调用该方法 - /// - /// - public virtual void OnEnter(string param) - { - } - - /// - /// Domain被关闭时,会调该方法 - /// - /// - public virtual void OnExit() - { - } - - /// - /// 如果Domain主动退出,请触发此Action - /// - public UnityAction RequestExit; - - public virtual async Task OnEnterAsync(string param) - { - await Task.Delay(1); - } - - public virtual async Task OnExitAsync() - { - await Task.Delay(1); - } - } -} - diff --git a/Assets/00.StaryEvo/Runtime/DomainBase.cs.meta b/Assets/00.StaryEvo/Runtime/DomainBase.cs.meta deleted file mode 100644 index a17165a..0000000 --- a/Assets/00.StaryEvo/Runtime/DomainBase.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 8923efe3eb184e7f9283f71e2dc4ea10 -timeCreated: 1742540500 \ No newline at end of file diff --git a/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs b/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs deleted file mode 100644 index 260f773..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs +++ /dev/null @@ -1,67 +0,0 @@ -#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member - -using System; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; -using UnityEngine; -#if ENABLE_UNITYWEBREQUEST && (!UNITY_2019_1_OR_NEWER || UNITASK_WEBREQUEST_SUPPORT) -using UnityEngine.Networking; -#endif - -namespace Stary.Evo -{ - public static partial class UnityAsyncExtensions - { - - -#if !UNITY_2023_1_OR_NEWER - // from Unity2023.1.0a15, AsyncOperationAwaitableExtensions.GetAwaiter is defined in UnityEngine. - public static AsyncOperationAwaiter GetAwaiter(this AsyncOperation asyncOperation) - { - return new AsyncOperationAwaiter(asyncOperation); - } -#endif - - - public struct AsyncOperationAwaiter : ICriticalNotifyCompletion - { - AsyncOperation asyncOperation; - Action continuationAction; - - public AsyncOperationAwaiter(AsyncOperation asyncOperation) - { - this.asyncOperation = asyncOperation; - this.continuationAction = null; - } - - public bool IsCompleted => asyncOperation.isDone; - - public void GetResult() - { - if (continuationAction != null) - { - asyncOperation.completed -= continuationAction; - continuationAction = null; - asyncOperation = null; - } - else - { - asyncOperation = null; - } - } - - public void OnCompleted(Action continuation) - { - UnsafeOnCompleted(continuation); - } - - public void UnsafeOnCompleted(Action continuation) - { - - } - } - - - } -} \ No newline at end of file diff --git a/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs.meta b/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs.meta deleted file mode 100644 index 3e053f9..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/UnityAsyncExtensions.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: a42a4edb452e470b87e698b7d7b7db4a -timeCreated: 1743403227 \ No newline at end of file diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index 3a636f1..e925abc 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.0.5", + "version": "1.0.3", "displayName": "00.StaryEvo", "description": "This is an Framework package", "unity": "2021.3", @@ -14,11 +14,6 @@ "type": "git", "url": "http://192.168.31.100:8088/framework/xosmopluginlibrary.git#02.InformationSave" }, - "dependencies": { - "com.cysharp.unitask": "2.5.10", - "com.code-philosophy.hybridclr": "4.0.15", - "com.tuyoogame.yooasset": "2.3.7" - }, "samples": [ { "displayName": "Framework Example Scenes",