mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] HotUpdateProcedure
[+] HotUpdateProcedure
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using TEngine;
|
||||
|
||||
namespace GameMain
|
||||
{
|
||||
public class UIDefine
|
||||
{
|
||||
public static readonly string UILoadUpdate = "UILoadUpdate";
|
||||
public static readonly string UILoadTip = "UILoadTip";
|
||||
|
||||
/// <summary>
|
||||
/// 注册ui
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
public static void RegisterUI(Dictionary<string, string> list)
|
||||
{
|
||||
if (list == null)
|
||||
{
|
||||
Log.Error("[UIManager]list is null");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!list.ContainsKey(UILoadUpdate))
|
||||
{
|
||||
list.Add(UILoadUpdate, $"AssetLoad/{UILoadUpdate}");
|
||||
}
|
||||
|
||||
if (!list.ContainsKey(UILoadTip))
|
||||
{
|
||||
list.Add(UILoadTip, $"AssetLoad/{UILoadTip}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user