fix: 删除 RemoteConfigBase 内OnChange 回调的JSON 属性
Signed-off-by: huyufei <yufei.hu@castbox.fm>main
							parent
							
								
									660303e45d
								
							
						
					
					
						commit
						2075f676b9
					
				|  | @ -1,6 +1,8 @@ | ||||||
| namespace Guru | namespace Guru | ||||||
| { | { | ||||||
|     using System; |     using System; | ||||||
|  |     using UnityEngine; | ||||||
|  |     using Newtonsoft.Json; | ||||||
|      |      | ||||||
|     public abstract class RemoteConfigBase<T>: IRemoteConfig<T> where T : IRemoteConfig<T> |     public abstract class RemoteConfigBase<T>: IRemoteConfig<T> where T : IRemoteConfig<T> | ||||||
|     { |     { | ||||||
|  | @ -8,6 +10,8 @@ namespace Guru | ||||||
|         /// 配置是否可用 |         /// 配置是否可用 | ||||||
|         /// </summary> |         /// </summary> | ||||||
|         public bool enable { get; set; } = true; |         public bool enable { get; set; } = true; | ||||||
|  |          | ||||||
|  |         [JsonIgnore] | ||||||
|         public Action<T> OnValueChanged { get; set; } |         public Action<T> OnValueChanged { get; set; } | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// 转为Json |         /// 转为Json | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue