2024-04-02 18:17:57 +08:00
|
|
|
|
using System.Collections.Generic;
|
2024-04-08 18:44:01 +08:00
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
2024-04-02 18:17:57 +08:00
|
|
|
|
|
|
|
|
|
namespace Game
|
|
|
|
|
{
|
|
|
|
|
public interface IUIManager
|
|
|
|
|
{
|
2024-04-08 18:44:01 +08:00
|
|
|
|
TMP_FontAsset font { get; set; }
|
2024-04-06 18:15:42 +08:00
|
|
|
|
IUI CreateUI(UIType uiType, UILayer uiLayer);
|
2024-04-02 18:17:57 +08:00
|
|
|
|
|
2024-04-06 18:15:42 +08:00
|
|
|
|
IUI ShowUI(UIType uiType);
|
2024-04-02 18:17:57 +08:00
|
|
|
|
|
|
|
|
|
T GetUI<T>(UIType uiType) where T : UIBase;
|
|
|
|
|
|
2024-04-03 14:38:44 +08:00
|
|
|
|
bool HideUI(UIType uiType);
|
2024-04-02 18:17:57 +08:00
|
|
|
|
|
|
|
|
|
IUI CloseLast();
|
|
|
|
|
|
|
|
|
|
void CloseAll();
|
|
|
|
|
}
|
|
|
|
|
}
|