zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Hotfix/Logic/Behaviour/Game/Helper/GlobalHotfixProtoHelper.cs

26 lines
692 B
C#

using ET;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using UnityEngine;
namespace ET
{
public class GlobalHotfixProtoHelper
{
private static string clientVer;
public static async ETTask<string> GetClintVersion()
{
if (clientVer == null)
{
TextAsset config = await ResourceHelper.LoadAssetAsync<TextAsset>(PathHelper.GlobalHotfixConfig);
GlobalHotfixProto globalProto = MongoHelper.FromJson<GlobalHotfixProto>(config.text);
clientVer = globalProto.ClientVersion;
}
return clientVer;
}
}
}