删除ARO配置文件

feature/Inventory
胡宇飞 2024-01-10 13:45:18 +08:00
parent f68005d280
commit 9df2c3ca8f
3 changed files with 0 additions and 50 deletions

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 9080cfebfd2d4cda9c0710d7128132b0
timeCreated: 1679381317

View File

@ -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;
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 37bdc74bb6334e7783854ade25d76450
timeCreated: 1681906541