protected override void begin() { base.begin(); TeamEmtpyInfoFPort fport = FPortManager.Instance.getFPort <TeamEmtpyInfoFPort> (); fport.access(getSelfHp); }
/// <summary> /// 获取替补席位信息 /// </summary> private void openTeamEmtpyWindow() { TeamEmtpyInfoFPort _fport = FPortManager.Instance.getFPort <TeamEmtpyInfoFPort> (); _fport.access(openGuildFightWindow); }
/// <summary> /// 战斗类型10人或替补之类 是否pvp 是否boss战 /// </summary> public void Initialize(int mode, bool isPvP, bool isBossBattle, CallBack battleCallback) { if (isPvP) { savingArmy = ArmyManager.Instance.DeepClone(ArmyManager.Instance.getArmy(3)); oldArmy = ArmyManager.Instance.getArmy(3); } else { savingArmy = ArmyManager.Instance.DeepClone(ArmyManager.Instance.getArmy(1)); oldArmy = ArmyManager.Instance.getArmy(1); } this.isPvP = isPvP; this.doBattle = battleCallback; battleMode = mode; this.isBossBattle = isBossBattle; if (isPvP) { playerFormationData = PvpInfoManagerment.Instance.getUserBFCards(); enemyFormationData = PvpInfoManagerment.Instance.getBattleFormationCards(); } else { playerFormationData = MissionInfoManager.Instance.mission.mine; enemyFormationData = MissionInfoManager.Instance.mission.enemy; } if (battleMode == BattleType.BATTLE_FIVE) { player10v10Root.SetActive(false); enemy10v10Root.SetActive(false); buttonBoss.gameObject.SetActive(false); player5v5Root.SetActive(true); enemy5v5Root.SetActive(true); activePlayerParter = buttonPlayerParter5v5; activeEnemyParter = buttonEnemyParter5v5; } else if (battleMode == BattleType.BATTLE_SUBSTITUTE) { player5v5Root.SetActive(false); enemy5v5Root.SetActive(false); buttonBoss.gameObject.SetActive(false); player10v10Root.SetActive(true); enemy10v10Root.SetActive(true); activePlayerParter = buttonPlayerParter10v10; activeEnemyParter = buttonEnemyParter10v10; } else if (battleMode == BattleType.BATTLE_FIVE && isBossBattle) { player10v10Root.SetActive(false); enemy10v10Root.SetActive(false); enemy5v5Root.SetActive(false); buttonBoss.gameObject.SetActive(true); player5v5Root.SetActive(true); activePlayerParter = buttonPlayerParter5v5; } else if (battleMode == BattleType.BATTLE_SUBSTITUTE && isBossBattle) { player5v5Root.SetActive(false); enemy5v5Root.SetActive(false); enemy10v10Root.SetActive(false); buttonBoss.gameObject.SetActive(true); player10v10Root.SetActive(true); activePlayerParter = buttonPlayerParter10v10; } else if (battleMode == BattleType.BATTLE_TEN && !isBossBattle) { player5v5Root.SetActive(false); enemy5v5Root.SetActive(false); buttonBoss.gameObject.SetActive(false); player10v10Root.SetActive(true); enemy10v10Root.SetActive(true); activePlayerParter = buttonPlayerParter10v10; activeEnemyParter = buttonEnemyParter10v10; } else if (battleMode == BattleType.BATTLE_TEN && isBossBattle) { player5v5Root.SetActive(false); enemy5v5Root.SetActive(false); enemy10v10Root.SetActive(false); buttonBoss.gameObject.SetActive(true); player10v10Root.SetActive(true); activePlayerParter = buttonPlayerParter10v10; } //更新战斗按钮文字 if (battleMode == BattleType.BATTLE_SUBSTITUTE) { ButtonBattleStart.textLabel.text = LanguageConfigManager.Instance.getLanguage("s0186"); } else if (battleMode == BattleType.BATTLE_TEN) { //只有10v10人才有资格叫 大乱斗 ButtonBattleStart.textLabel.text = LanguageConfigManager.Instance.getLanguage("s0191"); } else { ButtonBattleStart.textLabel.text = LanguageConfigManager.Instance.getLanguage("s0187"); } TeamEmtpyInfoFPort fport = FPortManager.Instance.getFPort <TeamEmtpyInfoFPort> (); fport.access(openEmptyForLevelNewBack); }
void initTeamOpenIndex() { TeamEmtpyInfoFPort fport = FPortManager.Instance.getFPort <TeamEmtpyInfoFPort>(); fport.access(getWeeklyAward); }
void openEmptyForLevelNew() { TeamEmtpyInfoFPort fport = FPortManager.Instance.getFPort <TeamEmtpyInfoFPort> (); fport.access(openEmptyForLevelNewBack); }