From 2075f676b92118ef96f537efae5c360468c1ce5a Mon Sep 17 00:00:00 2001 From: huyufei Date: Mon, 1 Jul 2024 18:27:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=20RemoteConfigBase=20?= =?UTF-8?q?=E5=86=85OnChange=20=E5=9B=9E=E8=B0=83=E7=9A=84JSON=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- Runtime/GuruRemote/Runtime/RemoteConfigBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Runtime/GuruRemote/Runtime/RemoteConfigBase.cs b/Runtime/GuruRemote/Runtime/RemoteConfigBase.cs index 7059290..28f7aa6 100644 --- a/Runtime/GuruRemote/Runtime/RemoteConfigBase.cs +++ b/Runtime/GuruRemote/Runtime/RemoteConfigBase.cs @@ -1,6 +1,8 @@ namespace Guru { using System; + using UnityEngine; + using Newtonsoft.Json; public abstract class RemoteConfigBase: IRemoteConfig where T : IRemoteConfig { @@ -8,6 +10,8 @@ namespace Guru /// 配置是否可用 /// public bool enable { get; set; } = true; + + [JsonIgnore] public Action OnValueChanged { get; set; } /// /// 转为Json