| | |
| | | [SerializeField] Button fightBtn; |
| | | [SerializeField] Image fightIcon; |
| | | [SerializeField] ScrollerController dropItemScroller; |
| | | [SerializeField] Button heroRoadBtn; |
| | | |
| | | |
| | | protected override void InitComponent() |
| | |
| | | }); |
| | | |
| | | fightBtn.AddListener(FightBoss); |
| | | |
| | | heroRoadBtn.AddListener(() => |
| | | { |
| | | UIManager.Instance.OpenWindow<DayMissionBaseWin>(2); |
| | | }); |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | |
| | | } |
| | | } |
| | | bossBG.SetOrgSprite(chapterConfig.BG, "MainLevel"); |
| | | |
| | | heroRoadBtn.SetActive(FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.DayMission)); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | 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(); |