private void OnClickBtnEnter(GameObject sender) { if (this.currentInstanceType == 102) { EliteDungeonManager.Instance.SendEliteChallengeReq(this.CfgID); return; } ZhuXianPeiZhi zhuXianPeiZhi = DataReader <ZhuXianPeiZhi> .Get(this.currentInstanceID); if (zhuXianPeiZhi.minLv > EntityWorld.Instance.EntSelf.Lv) { string text = GameDataUtils.GetChineseContent(510114, false); text = text.Replace("{s1}", zhuXianPeiZhi.minLv.ToString()); UIManagerControl.Instance.ShowToastText(text); return; } if (DungeonManager.Instance.GetDungeonInfo(this.currentInstanceID).remainingChallengeTimes == 0) { UIManagerControl.Instance.ShowToastText("当前挑战次数剩余0"); this.OnClickBtnAddTime(null); return; } if (zhuXianPeiZhi.expendVit > EntityWorld.Instance.EntSelf.Energy) { UIManagerControl.Instance.ShowToastText("没有足够的体力"); this.OnClickBtnAddEnergy(null); return; } if (InstanceManagerUI.IsPetLimit()) { return; } DungeonManager.Instance.SendChallengeDungeonReq(this.currentInstanceID); }
private void OnClickPVP(GameObject go) { if (InstanceManagerUI.IsPetLimit()) { return; } PVPManager.Instance.SendStartChallengeReq(); }
private void StartSCFight(GameObject go) { if (BackpackManager.Instance.ShowBackpackFull()) { return; } if (InstanceManagerUI.IsPetLimit()) { return; } SurvivalManager.Instance.SendChallengeSecretAreaReq(); }
private void OnClickBtnFight(GameObject sender) { if (ElementInstanceManager.Instance.m_elementCopyLoginPush.exploreEnergy <= 0) { ElementInstanceManager.Instance.BuyRecovery(); return; } if (InstanceManagerUI.IsPetLimit()) { return; } ElementInstanceManager.Instance.SendStartToFightReq(this.blockID, delegate { }); }
public void OnClickExecutTask(GameObject go) { if (InstanceManagerUI.IsPetLimit()) { return; } if (!BackpackManager.Instance.ShowBackpackFull()) { if (BountyManager.Instance.isSelectDaily) { if (BountyManager.Instance.Info.productions.get_Count() >= 4) { DialogBoxUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(513640, false), GameDataUtils.GetChineseContent(513641, false), null, null, delegate { NetworkManager.Send(new BountyAcceptTaskReq { taskId = BountyManager.Instance.Info.taskId }, ServerType.Data); }, GameDataUtils.GetChineseContent(500012, false), GameDataUtils.GetChineseContent(500011, false), "button_orange_1", "button_yellow_1", null); } else { NetworkManager.Send(new BountyAcceptTaskReq { taskId = BountyManager.Instance.Info.taskId }, ServerType.Data); } } else if (BountyManager.Instance.Info.productions.get_Count() >= 4) { UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(513641, false), 1f, 2f); } else { NetworkManager.Send(new BountyAcceptTaskReq { taskId = (!BountyManager.Instance.isSelectDaily) ? BountyManager.Instance.Info.urgentTaskId : BountyManager.Instance.Info.taskId }, ServerType.Data); } } }
protected void OnClickStart(GameObject go) { if (InstanceManagerUI.IsPetLimit()) { return; } if (BackpackManager.Instance.ShowBackpackFull()) { return; } SpecialFightModeGroup specialFightModeGroup = this.currentGroup; if (specialFightModeGroup != SpecialFightModeGroup.Defend) { if (specialFightModeGroup == SpecialFightModeGroup.Expericence) { this.StartExperienceFight(); } } else { this.StartDefendFight(); } }