| | |
| | | [SerializeField] HighSettingTip m_HighSettingTip;
|
| | | [SerializeField] TaskListTip m_TaskListTip;//任务
|
| | | [SerializeField] TopRightTip m_TopRightTip;
|
| | |
|
| | | [SerializeField] FunctionForecastTip m_FunctionForecastTip;//功能预告
|
| | | [SerializeField] IsShowXpButton m_IsShowXp;//XP 技能常显
|
| | | [SerializeField] SkillButtonEffects m_SkillButtonEffects;
|
| | |
| | | public float _Delaytime = 0.1f;//延迟时间
|
| | |
|
| | |
|
| | | [Header("任务面板的移动速度")]
|
| | | public float Speed = 0.2f;
|
| | | [Header("技能面板和按钮面板的移动速度")]
|
| | | public float SwitchSkillTipAndButtonTipSpeed = 0.2f;
|
| | | public float DoFade = 0.2f;
|
| | | [SerializeField] Transform m_LowSettingTipGroup;//按钮面板
|
| | | [SerializeField] Transform m_CastSkillTip;//技能面板
|
| | | [SerializeField] Transform m_position1_S;
|
| | | [SerializeField] Transform m_position2_S;
|
| | | public static bool recordPositionBool = true;
|
| | |
|
| | | [Header("策划要的角度")]
|
| | | [Header("切换按钮旋转角度")]
|
| | | public Vector3 Vec3 = new Vector3(0f, 0f, 225f);
|
| | | [SerializeField] Transform m_ImageRotation;//切换滚动
|
| | |
|
| | | [SerializeField] GameObject m_TaskAndTeamTip;
|
| | | [SerializeField] GameObject LeftImage;
|
| | | [SerializeField] GameObject RightImg;
|
| | | [SerializeField] Transform m_TaskAndTeamPanel;
|
| | | [SerializeField] Transform TaskListTipAnchor1;
|
| | | [SerializeField] Transform TaskListTipAnchor2;
|
| | |
|
| | | [SerializeField] Button m_TaskSwithButton;//关于功能预告
|
| | | [SerializeField] Transform FunctionForecastPanel;
|
| | | [SerializeField] Transform unctionForecastPosition1;
|
| | | [SerializeField] Transform unctionForecastPosition2;
|
| | |
|
| | | [SerializeField] FairyLeagueRemindBehaviour m_FairyLeagueRemind;
|
| | |
|
| | |
| | | {
|
| | | m_MapSwitchingBehaviour.InitAwake();
|
| | | recordPositionBool = true;
|
| | | m_TaskAndTeamPanel.localPosition = TaskListTipAnchor1.localPosition;
|
| | | m_CastSkillTip.localPosition = m_position1_S.localPosition;
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(1, 0);
|
| | | m_MainPositionTween.SetTaskPos(true);
|
| | | m_MainPositionTween.SetFunctionForecastPos(true);
|
| | | m_MailObj.SetActive(true);
|
| | | var inst = BossShowModel.Instance;
|
| | | TaskSwithBool = true;
|
| | | FunctionForecastPanel.localPosition = unctionForecastPosition1.localPosition;
|
| | | LeftImage.SetActive(true);
|
| | | RightImg.SetActive(false);
|
| | | ListBossMapId.Clear();
|
| | |
| | | }
|
| | | IsUpdateBool = true;
|
| | | SliderOpen = true;
|
| | | horseRidBool = false;
|
| | | m_InGamePusher.Init();
|
| | | m_SkillContainer.Init();
|
| | | m_FunctionForecastTip.Init();
|
| | |
| | | if (onMainModel.IsDead || (onMainModel.IsBossAreaTask && !IsBossBool))
|
| | | {
|
| | |
|
| | | if (Vector3.Distance(m_TaskAndTeamPanel.localPosition, TaskListTipAnchor1.localPosition) > 3)
|
| | | if (!m_MainPositionTween.IsTaskAndPanelShow)
|
| | | {
|
| | | TaskSwithButton();
|
| | | }
|
| | |
| | | }
|
| | | if (m_AnimationFadeOut.GetIsFadeIn() && mapId != PlayerDatas.Instance.baseData.MapID)
|
| | | {
|
| | | m_AnimationFadeOut.FadeAtOnce();
|
| | | m_MailObj.SetActive(true);
|
| | | m_CastSkillTip.localPosition = m_position1_S.localPosition;
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(1, 0);
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPos(true);
|
| | | recordPositionBool = true;
|
| | | }
|
| | | }
|
| | |
| | | m_FairyCallBehaviour.UnInit();
|
| | | m_FairyLeagueRemind.UnInit();
|
| | | m_MainButtonMisc.Unit();
|
| | | horseRidBool = false;
|
| | |
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= Updatefighting;
|
| | | FunctionUnlockFlyObject.functionUnLockShowBeginEvent -= UnFlodFunctionArea;
|
| | |
| | | }
|
| | | private void OnGuideBegin()//引导开始
|
| | | {
|
| | | if (Vector3.Distance(m_TaskAndTeamPanel.localPosition, TaskListTipAnchor1.localPosition) > 5)
|
| | | if (!m_MainPositionTween.IsTaskAndPanelShow)
|
| | | {
|
| | | TaskSwithButton();
|
| | | }
|
| | |
| | |
|
| | | if (_areaType == MapArea.E_Type.Boss && _enter)
|
| | | {
|
| | | if (Vector3.Distance(m_TaskAndTeamPanel.localPosition, TaskListTipAnchor1.localPosition) < 2 && ListBossMapId.Contains(PlayerDatas.Instance.baseData.MapID))
|
| | | if (m_MainPositionTween.IsTaskAndPanelShow && ListBossMapId.Contains(PlayerDatas.Instance.baseData.MapID))
|
| | | {
|
| | | TaskSwithButton();
|
| | | onMainModel.IsBossAreaTask = true;
|
| | |
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | |
|
| | | private Vector2 startPosition;
|
| | | private Vector2 endPosition;
|
| | | private bool horseRidBool = false;
|
| | | protected override void LateUpdate()
|
| | | {
|
| | | base.LateUpdate();
|
| | |
| | | }
|
| | | }
|
| | | m_ImageRotation.DOLocalRotate(Vector3.zero, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.DOLocalMoveX(m_position1_S.localPosition.x, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(1, DoFade);
|
| | | m_MailObj.SetActive(true);
|
| | | m_AnimationFadeOut.FadeOut();
|
| | | recordPositionBool = true;
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPosTween(true);
|
| | | }
|
| | | }
|
| | | void DownButton(GameObject go)
|
| | |
| | | }
|
| | | if (TaskSwithBool)//隐藏
|
| | | {
|
| | | m_TaskAndTeamPanel.DOLocalMoveX(TaskListTipAnchor2.localPosition.x, Speed);
|
| | | m_MainPositionTween.SetTaskPosTween(false);
|
| | | if (m_FunctionForecastTip.gameObject.activeSelf)
|
| | | {
|
| | | FunctionForecastPanel.DOLocalMoveX(unctionForecastPosition2.localPosition.x, Speed);
|
| | |
|
| | | m_MainPositionTween.SetFunctionForecastPosTween(false);
|
| | | }
|
| | | LeftImage.SetActive(false);
|
| | | RightImg.SetActive(true);
|
| | |
| | | }
|
| | | else//显示
|
| | | {
|
| | | m_TaskAndTeamPanel.DOLocalMoveX(TaskListTipAnchor1.localPosition.x, Speed);
|
| | | m_MainPositionTween.SetTaskPosTween(true);
|
| | | if (m_FunctionForecastTip.gameObject.activeSelf)
|
| | | {
|
| | | FunctionForecastPanel.DOLocalMoveX(unctionForecastPosition1.localPosition.x, Speed);
|
| | | m_MainPositionTween.SetFunctionForecastPosTween(true);
|
| | | }
|
| | | LeftImage.SetActive(true);
|
| | | RightImg.SetActive(false);
|
| | |
| | | }
|
| | | }
|
| | | m_ImageRotation.DOLocalRotate(Vec3, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.DOLocalMoveX(m_position2_S.localPosition.x, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(0, DoFade);
|
| | | m_MailObj.SetActive(false);
|
| | | m_AnimationFadeOut.FadeIn();
|
| | | _MarkRay.gameObject.SetActive(true);
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPosTween(false);
|
| | | }
|
| | | else//显示默认
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | m_ImageRotation.DOLocalRotate(Vector3.zero, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.DOLocalMoveX(m_position1_S.localPosition.x, SwitchSkillTipAndButtonTipSpeed);
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(1, DoFade);
|
| | | m_MailObj.SetActive(true);
|
| | | m_AnimationFadeOut.FadeOut();
|
| | | _MarkRay.gameObject.SetActive(false);
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPosTween(true);
|
| | | }
|
| | | recordPositionBool = !recordPositionBool;
|
| | | }
|
| | |
| | | {
|
| | | onMainModel.IsBossAreaTask = false;
|
| | | }
|
| | | m_TaskAndTeamPanel.localPosition = TaskListTipAnchor1.localPosition;
|
| | | m_MainPositionTween.SetTaskPos(true);
|
| | | TaskSwithBool = !TaskSwithBool;
|
| | | }
|
| | |
|
| | |
| | | IsCrossServerOneVsOne();
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | #endregion
|
| | |
|
| | | private bool IsDungeon()
|
| | |
| | | {
|
| | | if (_unflod)
|
| | | {
|
| | | if (Vector3.Distance(m_CastSkillTip.localPosition, m_position1_S.localPosition) <= 1)//技能面板展开状态
|
| | | if (m_MainPositionTween.IsRightTipPanelShow)//技能面板展开状态
|
| | | {
|
| | | ShowBtnGroup();//显示按钮组隐藏技能组(强制切换)
|
| | | }
|
| | | if (Vector3.Distance(m_TaskAndTeamPanel.localPosition, TaskListTipAnchor1.localPosition) > 5)//任务面板
|
| | | if (!m_MainPositionTween.IsTaskAndPanelShow)//任务面板
|
| | | {
|
| | | TaskSwithButton();
|
| | | onMainModel.IsBossAreaTask = false;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (Vector3.Distance(m_CastSkillTip.localPosition, m_position2_S.localPosition) <= 1)//技能面板收起状态
|
| | | if (m_MainPositionTween.IsRightTipPanelShow)//技能面板收起状态
|
| | | {
|
| | | ShowCastSkill();//显示技能组,隐藏按钮组(强制切换)
|
| | | }
|
| | |
| | | {
|
| | | if (AchievementGoto.achievementType == AchievementGoto.ExcuteSkill)
|
| | | {
|
| | | if (Vector3.Distance(m_CastSkillTip.localPosition, m_position2_S.localPosition) <= 1)//技能面板收起状态
|
| | | if (m_MainPositionTween.IsRightTipPanelShow)//技能面板收起状态
|
| | | {
|
| | | ShowCastSkill();//显示技能组隐藏按钮组(强制切换)
|
| | | }
|
| | |
| | |
|
| | | public void IsShowButtonGroup()
|
| | | {
|
| | | if (Vector3.Distance(m_CastSkillTip.localPosition, m_position1_S.localPosition) <= 1)//技能面板展示
|
| | | if (m_MainPositionTween.IsRightTipPanelShow)//技能面板展示
|
| | | {
|
| | | ShowBtnGroup();//显示按钮组隐藏技能组(强制切换)
|
| | | }
|
| | |
| | |
|
| | | private void ShowBtnGroup()//显示按钮组,隐藏技能组(强制切换)
|
| | | {
|
| | | m_AnimationFadeOut.ImmediatelyAppear();//按钮组立即出现
|
| | | m_CastSkillTip.localPosition = m_position2_S.localPosition;//技能面板切出
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPos(false);
|
| | | m_MailObj.SetActive(false);
|
| | | m_ImageRotation.DOLocalRotate(Vec3, SwitchSkillTipAndButtonTipSpeed);
|
| | | recordPositionBool = false;
|
| | |
| | | }
|
| | | private void ShowCastSkill()//显示技能组,隐藏按钮组(强制切换)
|
| | | {
|
| | | m_AnimationFadeOut.FadeAtOnce();//功能面板立刻隐藏
|
| | | m_CastSkillTip.localPosition = m_position1_S.localPosition;//技能面板立即出现
|
| | | m_MainPositionTween.SetSkillTipOrRightTipPos(true);
|
| | | m_MailObj.SetActive(true);
|
| | | m_CastSkillTip.GetComponent<CanvasGroup>().DOFade(1, 0);
|
| | | m_ImageRotation.DOLocalRotate(Vector3.zero, SwitchSkillTipAndButtonTipSpeed);
|
| | | recordPositionBool = true;
|
| | | _MarkRay.gameObject.SetActive(false);
|
| | |
| | | m_TaskSwithButton.gameObject.SetActive(false);
|
| | | m_InGamePusher.gameObject.SetActive(false);
|
| | | IsShowTaskPanel();
|
| | | if (Vector3.Distance(m_CastSkillTip.localPosition, m_position2_S.localPosition) <= 1)//技能面板收起状态
|
| | | if (m_MainPositionTween.IsRightTipPanelShow)//技能面板收起状态
|
| | | {
|
| | | ShowCastSkill();//显示技能组,隐藏按钮组(强制切换)
|
| | | }
|