fix: 删除 RemoteConfigBase 内OnChange 回调的JSON 属性

Signed-off-by: huyufei <yufei.hu@castbox.fm>
main
胡宇飞 2024-07-01 18:27:47 +08:00
parent 660303e45d
commit 2075f676b9
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
namespace Guru
{
using System;
using UnityEngine;
using Newtonsoft.Json;
public abstract class RemoteConfigBase<T>: IRemoteConfig<T> where T : IRemoteConfig<T>
{
@ -8,6 +10,8 @@ namespace Guru
/// 配置是否可用
/// </summary>
public bool enable { get; set; } = true;
[JsonIgnore]
public Action<T> OnValueChanged { get; set; }
/// <summary>
/// 转为Json