AlicizaX/Client/Packages/com.alicizax.unity.ui/Runtime/UI/Manager/IUIManager.cs

24 lines
695 B
C#
Raw Normal View History

2025-01-24 16:21:00 +08:00
using System;
using AlicizaX.Resource.Runtime;
using AlicizaX.Runtime;
using AlicizaX.Timer.Runtime;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace AlicizaX.UI.Runtime
{
public interface IUIManager : IModule, IModuleUpdate
{
void Initlize(Transform root);
Camera UICamera { get; set; }
Transform UICanvasRoot { get; set; }
2025-03-04 18:40:14 +08:00
UIBase ShowUI(Type type, params System.Object[] userDatas);
2025-01-24 16:21:00 +08:00
2025-03-04 18:40:14 +08:00
UniTask<UIBase> ShowUIAsync(Type type, params System.Object[] userDatas);
2025-01-24 16:21:00 +08:00
void CloseUI(Type type, bool force = false);
2025-03-04 18:40:14 +08:00
UIBase GetUI(Type type);
2025-01-24 16:21:00 +08:00
protected internal void SetTimerManager(ITimerManager timerManager);
}
}