删除ARO配置文件
parent
f68005d280
commit
9df2c3ca8f
|
|
@ -1,3 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 9080cfebfd2d4cda9c0710d7128132b0
|
|
||||||
timeCreated: 1679381317
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
namespace Guru
|
|
||||||
{
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ARO云控参数
|
|
||||||
/// </summary>
|
|
||||||
public class GuruAROConfig
|
|
||||||
{
|
|
||||||
public bool enable = false;
|
|
||||||
|
|
||||||
public static readonly string Key = "aro_impression_config"; // 配置Key
|
|
||||||
public static readonly string DefaultValue = "{\"enable\":false}"; // 默认值
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取在线参数
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static GuruAROConfig Get()
|
|
||||||
{
|
|
||||||
FirebaseUtil.AppendDefaultValue(Key, DefaultValue);
|
|
||||||
|
|
||||||
var config = FirebaseUtil.GetRemoteConfig<GuruAROConfig>(Key);
|
|
||||||
if (config == null)
|
|
||||||
{
|
|
||||||
config = new GuruAROConfig();
|
|
||||||
}
|
|
||||||
FirebaseUtil.OnFetchRemoteSuccess += config.OnFetchSuccess;
|
|
||||||
return config;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 拉取完成
|
|
||||||
/// </summary>
|
|
||||||
private void OnFetchSuccess()
|
|
||||||
{
|
|
||||||
FirebaseUtil.OnFetchRemoteSuccess -= OnFetchSuccess;
|
|
||||||
|
|
||||||
var config = FirebaseUtil.GetRemoteConfig<GuruAROConfig>(Key);
|
|
||||||
if (config != null) enable = config.enable;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 37bdc74bb6334e7783854ade25d76450
|
|
||||||
timeCreated: 1681906541
|
|
||||||
Loading…
Reference in New Issue