NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/FightInfo/FightInfoManager.UI.cs

24 lines
587 B
C#

using Gameplay.Unit;
namespace Gameplay.Level.FightInfo
{
public partial class FightInfoManager
{
private static UIWindow _fightInfoWindow;
public static async void CreateFightInfoWindow()
{
if (_fightInfoWindow == null)
{
_fightInfoWindow = await UI_FightInfoTipController.Open();
_fightInfoWindow.HideWindow();
}
}
public static void RemoveFightInfoWindow()
{
_fightInfoWindow.CloseWindow();
_fightInfoWindow = null;
}
}
}