0312 缥缈仙域自动改成等级限制,点击按钮才有效
| | |
| | | onStartChangeMap(); |
| | | } |
| | | |
| | | GA_Hero.startAutoHazyRegion = false; |
| | | //GA_Hero.startAutoHazyRegion = false; |
| | | |
| | | } |
| | | |
| | |
| | | #endif
|
| | | }
|
| | | m_StartAutoHazyRegion = value;
|
| | | if (m_StartAutoHazyRegion == false)
|
| | | ModelCenter.Instance.GetModel<HazyRegionModel>().auto = false;
|
| | | }
|
| | | }
|
| | | private float m_CalcAutoHazyRegionTime = 0;
|
| | | public float LastChkCanAutoHazyRegionTime = 0;
|
| | | public float hazyAutoWaitTime = 5;
|
| | | public float hazyAutoWaitTime = 1;
|
| | | HazyRegionModel m_HazyRegionModel;
|
| | | HazyRegionModel hazyRegionModel
|
| | | {
|
| | |
| | | #endif
|
| | | }
|
| | |
|
| | | if (m_CalcAutoHazyRegionTime > 5)
|
| | | if (m_CalcAutoHazyRegionTime > 2)
|
| | | {
|
| | | startAutoHazyRegion = true;
|
| | | }
|
| | |
| | | if (AdventureStage.Instance.IsInAdventureStage
|
| | | || ClientDungeonStageUtility.isClientDungeon
|
| | | || CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.VIPLv < 3)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | if (_eventID == -1)
|
| | | {
|
| | | hazyRegionModel.SendBackHazyRegion();
|
| | | hazyAutoWaitTime = 2;
|
| | | hazyAutoWaitTime = 1;
|
| | | #if UNITY_EDITOR
|
| | | Debug.LogFormat("所有寻访都已经结束了, 这里结束寻访, 设置下次等待时间 2");
|
| | | #endif
|
| | |
| | | else
|
| | | {
|
| | | hazyRegionModel.SendGotoIncident(_eventID);
|
| | | hazyAutoWaitTime = 2;
|
| | | hazyAutoWaitTime = 1;
|
| | | #if UNITY_EDITOR
|
| | | Debug.LogFormat("进行 {0} 寻访, 设置下次等待时间 2", _eventID);
|
| | | #endif
|
| | |
| | | }
|
| | | if (ClientDungeonStageUtility.isClientDungeon)
|
| | | {
|
| | | UpdateCoolDown(DungeonCoolDownType.LeaveMap, 7 * 1000);
|
| | | UpdateCoolDown(DungeonCoolDownType.LeaveMap, 4 * 1000);
|
| | | }
|
| | | WindowCenter.Instance.Open<DungeonGetTreasureVictoryWin>();
|
| | | WindowCenter.Instance.Open<TreasureDungeonVictoryWin>();
|
| | |
| | | |
| | | private void SetAutoChallenge() |
| | | { |
| | | if (PlayerDatas.Instance.baseData.VIPLv >= 3) |
| | | { |
| | | model.auto = !model.auto; |
| | | LocalSave.SetBool("HazyRegionAutoSetting" + PlayerDatas.Instance.PlayerId, model.auto); |
| | | } |
| | | else |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("HazyRegionAutoVip", 3); |
| | | } |
| | | //if (PlayerDatas.Instance.baseData.VIPLv >= 3) |
| | | //{ |
| | | // model.auto = !model.auto; |
| | | // LocalSave.SetBool("HazyRegionAutoSetting" + PlayerDatas.Instance.PlayerId, model.auto); |
| | | //} |
| | | //else |
| | | //{ |
| | | // SysNotifyMgr.Instance.ShowTip("HazyRegionAutoVip", 3); |
| | | //} |
| | | |
| | | DisplayAutoChallenge(); |
| | | } |
| | |
| | | if(model.auto)
|
| | | {
|
| | | m_WaitForCloseTime += Time.deltaTime;
|
| | | if(m_WaitForCloseTime > 3)
|
| | | if(m_WaitForCloseTime > 1)
|
| | | {
|
| | | m_WaitForCloseTime = 0;
|
| | | OnClickEmpty();
|
| | |
| | |
|
| | | [SerializeField] Button m_Goto;
|
| | | [SerializeField] Text m_GotoLabel;
|
| | | [SerializeField] Button m_GotoAuto;
|
| | |
|
| | | HazyRegionModel model { get { return ModelCenter.Instance.GetModel<HazyRegionModel>(); } }
|
| | | DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
|
| | |
| | | {
|
| | | m_GetPath.AddListener(GetPath);
|
| | | m_Goto.AddListener(Goto);
|
| | | m_GotoAuto.AddListener(GotoEx);
|
| | | }
|
| | |
|
| | | public void Display()
|
| | |
| | | DisplayActivePoint();
|
| | | DisplayButtonState();
|
| | | TryStartNotEnoughPointGuide();
|
| | | if (PlayerDatas.Instance.baseData.LV > model.autoOpenLimitLV)
|
| | | {
|
| | | Vector3 v = m_Goto.transform.localPosition;
|
| | | v.x = -105;
|
| | | |
| | | m_Goto.transform.localPosition = v;
|
| | | m_GotoAuto.transform.SetActive(true);
|
| | | }
|
| | | }
|
| | |
|
| | | void DisplayActivePoint()
|
| | |
| | | void DisplayButtonState()
|
| | | {
|
| | | m_Goto.SetColorful(m_GotoLabel, true);
|
| | | m_GotoAuto.SetColorful(m_GotoLabel, true);
|
| | | }
|
| | |
|
| | | void TryStartNotEnoughPointGuide()
|
| | |
| | | FunctionalGuideCenter.Instance.StartGuide(136);
|
| | | }
|
| | | }
|
| | |
|
| | | private void GotoEx()
|
| | | {
|
| | | model.auto = true;
|
| | | GA_Hero.startAutoHazyRegion = true;
|
| | | Goto();
|
| | | }
|
| | | private void Goto()
|
| | | {
|
| | | var error = 0;
|
| | |
| | | [SerializeField] Transform m_ContainerPoint;
|
| | | [SerializeField] Slider m_Slider;
|
| | | [SerializeField] Text m_Point;
|
| | | [SerializeField] Button m_Back;
|
| | | [SerializeField] Button m_GotoAuto;
|
| | | [SerializeField] Button m_Goto;
|
| | | [SerializeField] Text m_GotoLabel;
|
| | |
|
| | |
| | |
|
| | | private void Awake()
|
| | | {
|
| | | m_Back.AddListener(OnBack);
|
| | | m_GotoAuto.AddListener(GotoAuto);
|
| | | m_Goto.AddListener(Goto);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | void DisplayBackButton()
|
| | | {
|
| | | m_Back.gameObject.SetActive(false);
|
| | | if (PlayerDatas.Instance.baseData.LV > model.autoOpenLimitLV)
|
| | | m_GotoAuto.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | int Compare(int lhs, int rhs)
|
| | |
| | | m_Goto.SetColorful(m_GotoLabel, questState != DailyQuestModel.DailyQuestState.OutTime);
|
| | | }
|
| | |
|
| | |
|
| | | private void GotoAuto()
|
| | | {
|
| | | model.auto = true;
|
| | | GA_Hero.startAutoHazyRegion = true;
|
| | | //Goto();
|
| | | }
|
| | |
|
| | | private void Goto()
|
| | | {
|
| | | var error = 0;
|
| | |
| | | public int openActviePoint { get; private set; }
|
| | | public int autoOpenLimitLevel { get; private set; }
|
| | | int autoOpenLimitTimes = 0;
|
| | | public int autoOpenLimitLV = 0;
|
| | |
|
| | | int m_SelectIncident;
|
| | | public int selectIncident
|
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | auto = LocalSave.GetBool("HazyRegionAutoSetting" + PlayerDatas.Instance.PlayerId, false);
|
| | | auto = false;//LocalSave.GetBool("HazyRegionAutoSetting" + PlayerDatas.Instance.PlayerId, false);
|
| | | isServerPrepare = true;
|
| | |
|
| | | if (AdventureStage.Instance.IsInAdventureStage)
|
| | |
| | | funcConfig = FuncConfigConfig.Get("HazyRegionAutoOpen");
|
| | | autoOpenLimitLevel = int.Parse(funcConfig.Numerical1);
|
| | | int.TryParse(funcConfig.Numerical2, out autoOpenLimitTimes);
|
| | | int.TryParse(funcConfig.Numerical3, out autoOpenLimitLV);
|
| | | |
| | |
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | [SerializeField] HazyRegionEntrancePanel m_EntrancePanel;
|
| | | [SerializeField] HazyRegionIncidentPanel m_IncidentPanel;
|
| | | [SerializeField] Button m_Btn_VipFunc;
|
| | | [SerializeField] ScaleTween m_BottomScaleTween;
|
| | | [SerializeField] UIAlphaTween m_AlphaTween;
|
| | |
|
| | |
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_Btn_VipFunc.onClick.RemoveListener(OnVipFuncClick);
|
| | | m_Btn_VipFunc.onClick.AddListener(OnVipFuncClick);
|
| | | }
|
| | |
|
| | | private void OnVipFuncClick()
|
| | |
| | | if (_hero != null)
|
| | | {
|
| | | _hero.LastChkCanAutoHazyRegionTime = 0;
|
| | | _hero.hazyAutoWaitTime = 3;
|
| | | _hero.hazyAutoWaitTime = 1;
|
| | | }
|
| | | }
|
| | |
|