com.alicizax.unity.framework/Runtime/UI/Manager/IUIModule.cs

25 lines
881 B
C#
Raw Permalink Normal View History

2025-09-05 19:46:30 +08:00
using System;
using AlicizaX.Resource.Runtime;
using AlicizaX;
using AlicizaX.Timer.Runtime;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace AlicizaX.UI.Runtime
{
public interface IUIModule : IModule, IModuleUpdate
{
void Initlize(Transform root,bool isOrthographic);
Camera UICamera { get; set; }
Transform UICanvasRoot { get; set; }
UniTask<UIBase> ShowUI<T>(params System.Object[] userDatas) where T : UIBase;
UniTask<UIBase>? ShowUI(string type, params object[] userDatas);
UniTask<T> ShowUIAsync<T>(params System.Object[] userDatas) where T : UIBase;
void CloseUI<T>(bool force = false) where T : UIBase;
T GetUI<T>() where T : UIBase;
void CloseUI(RuntimeTypeHandle handle, bool force = false);
protected internal void SetTimerManager(ITimerModule timerModule);
}
}