45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Framework;
|
|
using Gameplay.Guide;
|
|
using Gameplay.Level;
|
|
|
|
public partial class TeamManager
|
|
{
|
|
private UIWindow _curFightPosterUI;
|
|
public async void OpenFightPosterUI(uint uid = 0)
|
|
{
|
|
// if (GetSingleCharacByUid(uid).Type != SingleTeamCharacterInfo.CharacType.Hero)
|
|
// {
|
|
// return;
|
|
// }
|
|
|
|
if (_curFightPosterUI == null)
|
|
{
|
|
// if(uid != 0)
|
|
// _curFightPosterUI = await UIPosterAndSkillInfoController.Open(uid);
|
|
// else
|
|
// _curFightPosterUI = await UIPosterAndSkillInfoController.Open();
|
|
// return;
|
|
if(uid != 0)
|
|
LevelManager.Instance.SkillInfoOpen(uid);
|
|
else
|
|
LevelManager.Instance.SkillInfoOpen(0);
|
|
}
|
|
|
|
}
|
|
|
|
public void CloseFightPosterUI(bool isRelease = false)
|
|
{
|
|
// if (isRelease)
|
|
// {
|
|
// UIManager.Instance.CloseWindow(UINameConst.UIFightPoster);
|
|
// return;
|
|
// }
|
|
// if (_curFightPosterUI != null)
|
|
// {
|
|
// _curFightPosterUI.HideWindow();
|
|
// }
|
|
LevelManager.Instance.SkillInfoClose(isRelease);
|
|
|
|
//_curFightPosterUI = null;
|
|
}
|
|
} |