| | |
| | | /// </summary> |
| | | public class UIJumpManager : GameSystemManager<UIJumpManager> |
| | | { |
| | | |
| | | |
| | | public override void Init() |
| | | { |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | else if (config.WinName == "HeroDebutCallWin") |
| | | else if (config.WinName == "HeroDebutCallWin" || |
| | | config.WinName == "HeroDebutSkinWin" || |
| | | config.WinName == "HeroDebutCheckInWin" || |
| | | config.WinName == "HeroDebutGiftWin" || |
| | | config.WinName == "HeroDebutShopWin") |
| | | { |
| | | var heroDebutAct = HeroDebutManager.Instance.GetOperationHeroAppearInfo(); |
| | | if (heroDebutAct == null) return; |
| | | |
| | | ActHeroAppearConfig actHeroAppearConfig = ActHeroAppearConfig.Get(heroDebutAct.CfgID); |
| | | if (actHeroAppearConfig == null) return; |
| | | |
| | | if (actHeroAppearConfig.ExShopCostItemID != int.Parse(config.Extra)) |
| | | if (heroDebutAct == null) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("ActivityNoOpen"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | if (UIManager.Instance.IsOpened<HeroDebutCallWin>()) |
| | | { |
| | | UIManager.Instance.CloseWindow<HeroDebutCallWin>(); |
| | | UIManager.Instance.OpenWindow<HeroDebutCallWin>(); |
| | | } |
| | | } |
| | | } |
| | | else if (config.WinName == "HeroDebutSkinWin") |
| | | { |
| | | var heroDebutAct = HeroDebutManager.Instance.GetOperationHeroAppearInfo(); |
| | | if (heroDebutAct == null) return; |
| | | |
| | | ActHeroAppearConfig actHeroAppearConfig = ActHeroAppearConfig.Get(heroDebutAct.CfgID); |
| | | if (actHeroAppearConfig == null) return; |
| | | |
| | | if (!HeroDebutManager.Instance.HasItemInSkinCTGIDList(heroDebutAct.CfgID, int.Parse(config.Extra))) |
| | | var actHeroAppearConfig = ActHeroAppearConfig.Get(heroDebutAct.CfgID); |
| | | if (actHeroAppearConfig == null) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("ActivityNoOpen"); |
| | | return; |
| | | } |
| | | else |
| | | |
| | | // 皮肤商店需要判断物品ID |
| | | if (config.WinName == "HeroDebutSkinWin") |
| | | { |
| | | if (UIManager.Instance.IsOpened<HeroDebutCallWin>()) |
| | | if (!HeroDebutManager.Instance.HasItemInSkinCTGIDList(heroDebutAct.CfgID, int.Parse(config.Extra))) |
| | | { |
| | | UIManager.Instance.CloseWindow<HeroDebutCallWin>(); |
| | | UIManager.Instance.OpenWindow<HeroDebutCallWin>(); |
| | | SysNotifyMgr.Instance.ShowTip("ActivityNoOpen"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (UIManager.Instance.IsOpened(config.WinName)) |
| | | { |
| | | UIManager.Instance.CloseWindow(config.WinName); |
| | | UIManager.Instance.OpenWindow(config.WinName); |
| | | } |
| | | } |
| | | |
| | | if (!UIManager.Instance.IsOpened(config.WinName)) |