//显示群雄争霸pvp private void OnProcessShowQxzbPvP() { if (mainLogic != null) { mainLogic.OnQxzbPvPWindow(); } }
void backToPreviousWindow(GameObject btn) { if (mainUILogic != null) { mainUILogic.OnQxzbPvPWindow(); } }
private static void BackToQxzbPvPController(GameObject go) { if (mainLogic == null) { mainLogic = GameObject.Find("MainUILogic").GetComponent <MainUILogic>(); } mainLogic.OnQxzbPvPWindow(); }
void BackBtnPress() { long leaderCardID = Obj_MyselfPlayer.GetMe().curPvPLearder; if (isSelectLeader && (leaderCardID <= 0 || !Obj_MyselfPlayer.GetMe().IsCardInBagByID(leaderCardID))) //无队长或者队长卡不存在 { mainUILogic.OnQxzbPvPWindow(); return; } //对选择队员/队长信息的更新操作 if (!isSelectLeader) //选择队员时,点返回按钮要恢复之前的阵容,不保存修改 { //还原队伍 int i = 0; for (; i < Obj_MyselfPlayer.GetMe().PvPBattleArray.Length; i++) { if (Obj_MyselfPlayer.GetMe().PvPBattleArray[i] != Obj_MyselfPlayer.GetMe().curPvPLearder) { DontSelect(Obj_MyselfPlayer.GetMe().PvPBattleArray[i]); } } i = 0; for (; i < Obj_MyselfPlayer.GetMe().PvPBattleArray.Length; i++) { if (Obj_MyselfPlayer.GetMe().PvPBattleArray[i] != Obj_MyselfPlayer.GetMe().curPvPLearder) { SelectMem(TempBattleArray[i]); } } i = 0; for (; i < Obj_MyselfPlayer.GetMe().PvPBattleArray.Length; i++) { Obj_MyselfPlayer.GetMe().PvPBattleArray[i] = TempBattleArray[i]; if (TempBattleArray[i] > 0) { UserCardItem item = Obj_MyselfPlayer.GetMe().GetUserCardByGUID(TempBattleArray[i]); if (item != null) { item.qxzbFightIndex = item.qxzbFightIndex / 10 * 10 + i; } } } } mainController.showBottomBar(); mainUILogic.OnPVPTeamWindow(); }