继续重构调整(UI)
- 引入 UniTask 和异步版本的 UIModule - 调整 Runtime/UIBase 和 Presentation 下的脚本命名空间到 SepCore.UI - 将原来的 5 层 UI 迁移到异步实现 - 规范各层的 UI 脚本命名
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using SepCore.DataTable;
|
||||
using SepCore.Definition;
|
||||
using Entity;
|
||||
@@ -7,7 +8,7 @@ using GameFramework.Event;
|
||||
using GameFramework.Fsm;
|
||||
using GameFramework.Procedure;
|
||||
using UnityGameFramework.Runtime;
|
||||
using UI;
|
||||
using SepCore.UI;
|
||||
|
||||
namespace Procedure
|
||||
{
|
||||
@@ -97,7 +98,7 @@ namespace Procedure
|
||||
_currentPlayerData = new PlayerData(-1, 1001);
|
||||
GameEntry.Entity.ShowPlayer(_currentPlayerData);
|
||||
|
||||
GameEntry.UIRouter.OpenUI(UIFormType.HudForm);
|
||||
GameEntry.UIRouter.OpenUIAsync(UIFormType.HudForm).Forget();
|
||||
}
|
||||
|
||||
protected override void OnUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds,
|
||||
@@ -129,7 +130,7 @@ namespace Procedure
|
||||
|
||||
_gameStates.Clear();
|
||||
|
||||
GameEntry.UIRouter.CloseUI(UIFormType.HudForm);
|
||||
GameEntry.UIRouter.CloseUIAsync(UIFormType.HudForm).Forget();
|
||||
|
||||
_hudForm = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user