yyl
9 天以前 9e89e605d5429babb4b33df2e47ea86dff9d2ba7
Main/System/MainLevel/MainBossEnterWin.cs
@@ -24,6 +24,7 @@
    [SerializeField] Button fightBtn;
    [SerializeField] Image fightIcon;
    [SerializeField] ScrollerController dropItemScroller;
    [SerializeField] Button heroRoadBtn;
    protected override void InitComponent()
@@ -39,6 +40,11 @@
        });
        fightBtn.AddListener(FightBoss);
        heroRoadBtn.AddListener(() =>
        {
            UIManager.Instance.OpenWindow<DayMissionBaseWin>(2);
        });
    }
    protected override void OnPreOpen()
@@ -129,6 +135,8 @@
            }
        }
        bossBG.SetOrgSprite(chapterConfig.BG, "MainLevel");
        heroRoadBtn.SetActive(FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.DayMission));
    }
@@ -136,11 +144,8 @@
    {
        if (MainLevelManager.Instance.CanChallengeBoss())
        {
            var pack = new CB410_tagCMTurnFight();
            pack.MapID = 2;
            // pack.FuncLineID = (uint)PlayerDatas.Instance.baseData.ExAttr1 + 1;
            GameNetSystem.Instance.SendInfo(pack);
            BattleManager.Instance.SendTurnFight(2);
            BattleManager.Instance.storyBattleField.CleanBattle();
            AutoFightModel.Instance.isPause = true;
        }
        CloseWindow();