2024-07-19 10:51:48 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace ZC
|
|
|
|
|
{
|
|
|
|
|
public interface IUIManager
|
|
|
|
|
{
|
|
|
|
|
TMP_FontAsset font { get; set; }
|
2024-11-12 16:57:51 +08:00
|
|
|
|
T CreateUI<T>(UIType uiType, string path, UILayer uiLayer) where T : UIBase;
|
|
|
|
|
void DeleteUI(UIType uiType);
|
2024-07-19 10:51:48 +08:00
|
|
|
|
|
|
|
|
|
IUI ShowUI(UIType uiType);
|
2024-11-12 16:57:51 +08:00
|
|
|
|
IUI ShowUI(UIBase uiBase);
|
2024-07-19 10:51:48 +08:00
|
|
|
|
|
|
|
|
|
T GetUI<T>(UIType uiType) where T : UIBase;
|
|
|
|
|
|
|
|
|
|
bool HideUI(UIType uiType);
|
2024-11-12 16:57:51 +08:00
|
|
|
|
bool HideUI(UIBase uiBase);
|
2024-07-19 10:51:48 +08:00
|
|
|
|
|
|
|
|
|
IUI CloseLast();
|
|
|
|
|
|
|
|
|
|
void CloseAll();
|
|
|
|
|
}
|
|
|
|
|
}
|