Merge branch 'master' into ClientPreciousDungeon
| | |
| | | if (needLoadResource) |
| | | { |
| | | tasks.Enqueue(new StageLoadProcessor.LoadNewSceneTask(command)); |
| | | isLoadingScene = true; |
| | | } |
| | | |
| | | if (!command.isClientLoadMap) |
| | |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | loadStartTime = Time.time; |
| | | isLoading = true; |
| | | isLoadingScene = true; |
| | | } |
| | | |
| | | public void ReportComplete(int mapId, int lineId, bool record) |
| | |
| | | void DisplayBase()
|
| | | {
|
| | | var config = HazyRegionConfig.Get(incidentId);
|
| | | //m_DepletionPoint.gameObject.SetActive(!model.InFakeHazyRegion);
|
| | | m_DepletionPoint.gameObject.SetActive(false);
|
| | | m_DepletionPoint.text = Language.Get("HazyRegionPoint", config.point);
|
| | | m_IncidentTitle.text = config.name;
|
| | | m_Icon.SetSprite(config.PortraitID);
|
| | | m_Icon.SetNativeSize();
|
| | | m_Icon.material = m_SmoothMask.imageMaterials[0];
|
| | | m_ContainerCrossServer.gameObject.SetActive(!model.InFakeHazyRegion && config.crossServer == 1);
|
| | | m_ContainerMustSign.gameObject.SetActive(incidentType == HazyRegionIncidentType.Precious);
|
| | | m_ContainerMustSign.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | void DisplayItems()
|
| | |
| | |
|
| | | private void Awake()
|
| | | {
|
| | | m_Back.AddListener(OnBack);
|
| | | //m_Back.AddListener(OnBack);
|
| | | m_Goto.AddListener(Goto);
|
| | | }
|
| | |
|
| | |
| | | requestCount = 0;
|
| | | model.incidentDirty = false;
|
| | | SendRequestPlayerCount();
|
| | |
|
| | | m_ContainerPoint.gameObject.SetActive(false);
|
| | |
|
| | | DailyQuestActionTimer.Instance.RefreshDailyQuestState -= RefreshDailyQuestState;
|
| | | DailyQuestActionTimer.Instance.RefreshDailyQuestState += RefreshDailyQuestState;
|
| | |
| | |
|
| | | void DisplayBackButton()
|
| | | {
|
| | | m_Back.gameObject.SetActive(!model.InFakeHazyRegion);
|
| | | m_Back.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | int Compare(int lhs, int rhs)
|
| | |
| | | switch (incident.state)
|
| | | {
|
| | | case IncidentState.UnStart:
|
| | | if (point < config.point)
|
| | | {
|
| | | error = 3;
|
| | | return false;
|
| | | }
|
| | | //if (point < config.point)
|
| | | //{
|
| | | // error = 3;
|
| | | // return false;
|
| | | //}
|
| | | break;
|
| | | case IncidentState.Complete:
|
| | | error = 4;
|
| | |
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | if (model.InFakeHazyRegion && stage == HazyRegionStage.Playing)
|
| | | if (stage == HazyRegionStage.Playing)
|
| | | {
|
| | | StartCoroutine(Co_VerifyCompleteAllIncidents());
|
| | | }
|
| | |
| | | yield return WaitingForSecondConst.WaitMS500;
|
| | |
|
| | | var allComplete = true;
|
| | | bool existAnySatisfyGoto = false;
|
| | | var incidents = model.GetAllIncidents();
|
| | | if (incidents != null)
|
| | | {
|
| | |
| | | {
|
| | | allComplete = false;
|
| | | }
|
| | | if (incident.state == HazyRegionModel.IncidentState.Processing)
|
| | | {
|
| | | existAnySatisfyGoto = true;
|
| | | }
|
| | | else if (incident.state == HazyRegionModel.IncidentState.UnStart)
|
| | | {
|
| | | var error = 0;
|
| | | if (model.TryGotoIncident(id, false, out error))
|
| | | {
|
| | | existAnySatisfyGoto = true;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (!allComplete)
|
| | | {
|
| | | if (!existAnySatisfyGoto && model.point == 0)
|
| | | {
|
| | | allComplete = true;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | m_parent.GetChild(i).GetComponent<FlyingShoesTask>().ImgSelected.SetActive(true);
|
| | | }
|
| | | }
|
| | | m_DeliveryButton.gameObject.SetActive(true);
|
| | |
|
| | | m_DeliveryButton.gameObject.SetActive(false);
|
| | |
|
| | | if (!taskmodel.allMissionDict.ContainsKey(TaskID))
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if ((int)taskmodel.GetTaskStatus(TaskID) > 0)
|
| | | var satisfyFly = true;
|
| | | if (!FuncOpen.Instance.IsFuncOpen(176) ||
|
| | | taskmodel.GetTaskStatus(TaskID) > 0)
|
| | | {
|
| | | m_DeliveryButton.gameObject.SetActive(false);
|
| | | IsKaJiBool = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | IsKaJiBool = false;
|
| | | satisfyFly = false;
|
| | | }
|
| | |
|
| | | if (taskmodel.allMissionDict[TaskID].MissionState == 2)
|
| | |
| | | return;
|
| | | }
|
| | | bool isOPenTransferButton = HrefAnalysis.Inst.ContainsKey(taskinfo.show_writing, "flynpc");
|
| | | if (isOPenTransferButton && !IsKaJiBool)
|
| | | if (satisfyFly && !isOPenTransferButton)
|
| | | {
|
| | | m_DeliveryButton.gameObject.SetActive(true);
|
| | | satisfyFly = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_DeliveryButton.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | m_DeliveryButton.gameObject.SetActive(satisfyFly);
|
| | |
|
| | | m_ContentText.raycastTarget = false;
|
| | | if (taskmodel._DicTaskInformation.ContainsKey(TaskID))
|
| | | {
|
| | |
| | | {
|
| | | // ClientSceneManager.Instance.TriggerTest(_triggerID);
|
| | | // GA_NpcFunc.SetNpcFuncVisible(10104003, true);
|
| | | Vector3 ppp;
|
| | | if (ClientSceneManager.Instance.AAA(PlayerDatas.Instance.hero.Pos, new Vector3(6, 0, 39.5f), out ppp))
|
| | | {
|
| | | Debug.Log("最终....PPP: " + ppp);
|
| | | }
|
| | | // Vector3 ppp;
|
| | | // if (ClientSceneManager.Instance.AAA(PlayerDatas.Instance.hero.Pos, new Vector3(6, 0, 39.5f), out ppp))
|
| | | // {
|
| | | // Debug.Log("最终....PPP: " + ppp);
|
| | | // }
|
| | | // for (int i = 0; i < 10; ++i)
|
| | | // {
|
| | | // ClientDropItemUtility.Instance.DropInShortTime(PlayerDatas.Instance.hero.Pos, 10427);
|
| | | // }
|
| | | PlayerDatas.Instance.hero.Play(GAStaticDefine.State_IdleHash);
|
| | | }
|
| | | EditorGUILayout.EndHorizontal();
|
| | |
|
| | |
| | |
|
| | | if (GUILayout.Button("创建PVP敌方"))
|
| | | {
|
| | | var _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(10103001, E_ActorGroup.Enemy);
|
| | | var _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(20000, E_ActorGroup.Enemy);
|
| | | _npc.BornPos = _npc.Pos = PlayerDatas.Instance.hero.Pos;
|
| | | PersonalEnemy.Bind(_npc);
|
| | |
|
| | | // BossShowModel.Instance.Start(PlayerDatas.Instance.baseData.MapID, 10103001);
|
| | | // ClientDropItemUtility.Instance.Drop(PlayerDatas.Instance.hero.Pos,
|
| | | // new int[] { 5006, 5301, 5410, 5505, 10543, 1043050,
|