update: 为 GuruSDK.Remote 取值添加 defaultValue 参数
							parent
							
								
									1b97f8ec03
								
							
						
					
					
						commit
						8acd6faf94
					
				|  | @ -30,12 +30,12 @@ namespace Guru | |||
|         { | ||||
|             return RemoteConfigManager.GetConfig<T>(key); | ||||
|         } | ||||
|         public static string GetRemoteString(string key) => RemoteConfigManager.GetString(key); | ||||
|         public static int GetRemoteInt(string key) => RemoteConfigManager.GetInt(key); | ||||
|         public static long GetRemoteLong(string key) => RemoteConfigManager.GetLong(key); | ||||
|         public static double GetRemoteDouble(string key) => RemoteConfigManager.GetDouble(key); | ||||
|         public static float GetRemoteFloat(string key) => RemoteConfigManager.GetFloat(key); | ||||
|         public static bool GetRemoteBool(string key) => RemoteConfigManager.GetBool(key); | ||||
|         public static string GetRemoteString(string key, string defaultValue = "") => RemoteConfigManager.GetString(key, defaultValue); | ||||
|         public static int GetRemoteInt(string key, int defaultValue = 0) => RemoteConfigManager.GetInt(key, defaultValue); | ||||
|         public static long GetRemoteLong(string key, long defaultValue = 0 ) => RemoteConfigManager.GetLong(key, defaultValue); | ||||
|         public static double GetRemoteDouble(string key, double defaultValue = 0) => RemoteConfigManager.GetDouble(key, defaultValue); | ||||
|         public static float GetRemoteFloat(string key, float defaultValue = 0) => RemoteConfigManager.GetFloat(key, defaultValue); | ||||
|         public static bool GetRemoteBool(string key, bool defaultValue = false) => RemoteConfigManager.GetBool(key, defaultValue); | ||||
| 
 | ||||
|          | ||||
|         public static void RegisterOnValueChanged(string key, Action<string,string> onValueChanged) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue