| | |
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | { |
| | | {
|
| | | bool IsBossBool = PlayerDatas.Instance.hero != null && MapArea.IsInMapArea(PlayerDatas.Instance.hero.CurMapArea, MapArea.E_Type.Boss);//是否在Boss区域
|
| | | if (onMainModel.IsDead || (onMainModel.IsBossAreaTask && !IsBossBool))
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | else
|
| | | { |
| | | {
|
| | | var isNeutralMap = GeneralConfig.Instance.neutralMaps.Contains(PlayerDatas.Instance.baseData.MapID);
|
| | |
|
| | | if (isNeutralMap)
|
| | |
| | |
|
| | | private void OnEnterOrExitArea(MapArea.E_Type _areaType, bool _enter)
|
| | | {
|
| | | // DesignDebug.LogError(_areaType + ".." + _enter);
|
| | | // DesignDebug.LogError(_areaType + ".." + _enter);
|
| | | if (PlayerDatas.Instance.baseData.MapID == 10040 && _areaType != MapArea.E_Type.Boss && _enter)
|
| | | {
|
| | | if (Buffmodel.PkType != onMainModel.AreaState)
|
| | |
| | | if (!recordPositionBool)
|
| | | {
|
| | | if (inDungeon || IsBossBool || isNeutralMap)
|
| | | { |
| | | {
|
| | | if (IsCopyOfThePanel != null)
|
| | | {
|
| | | IsCopyOfThePanel(false);
|
| | |
| | | }
|
| | | CopyOfThePanel.DOLocalMoveY(CopyOfThePosition2.localPosition.y, CopyOfThePanelSpeed);
|
| | | m_ContainerBossList.DOLocalMoveY(CopyOfThePosition1.localPosition.y, CopyOfThePanelSpeed);
|
| | | m_BossBriefInfos.Unfold(false); |
| | | m_BossBriefInfos.Unfold(false);
|
| | | }
|
| | | if (!IsBossBool)
|
| | | {
|
| | | if (Vector3.Distance(CopyOfThePanel.position, CopyOfThePosition1.position) > 2 && !inDungeon)
|
| | | { |
| | | {
|
| | | if (IsCopyOfThePanel != null)
|
| | | {
|
| | | IsCopyOfThePanel(true);
|
| | |
| | | recordPositionBool = !recordPositionBool;
|
| | | }
|
| | |
|
| | | // 前期战斗用强制设置任务位置逻辑
|
| | | public void ForceShowTaskPanel()
|
| | | {
|
| | | if (onMainModel.IsBossAreaTask)
|
| | | {
|
| | | onMainModel.IsBossAreaTask = false;
|
| | | }
|
| | | m_TaskAndTeamPanel.localPosition = TaskListTipAnchor1.localPosition;
|
| | | TaskSwithBool = !TaskSwithBool;
|
| | | }
|
| | |
|
| | | void ArticleExperience()//关于经验条
|
| | | {
|
| | | int NowLv = (int)PlayerDatas.Instance.baseData.LV;
|