public override void OnEnter() { battleType = Obj_MyselfPlayer.GetMe().battleType; changed = false; if (battleType != BattleType.CHONG_LOU) { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_WAITING); return; } BattleCardManager.Instance.MakeCardStatePrepareRevive(); BattleCardManager.Instance.ReviveAllCardFree(); }
public override void Update() { m_DeltaTime += Time.deltaTime; if (m_DeltaTime >= m_TotalTime) { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_BATTLE_END); } }
public override void Update() { m_DeltaTime += Time.deltaTime; if (m_DeltaTime >= m_TotalTime) { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_CARD_MEET); } m_BattleBg.Move(Time.deltaTime); }
public override void Update() { m_DeltaTime += Time.deltaTime; if (m_DeltaTime >= m_TotalTime) { if (m_Manager.GetBattlePlayer().GetBattleRoundData().isWin == false || (m_Manager.GetBattlePlayer().RoundCounter >= 3 && battleType != BattleType.CHONG_LOU)) { Obj_MyselfPlayer.GetMe().pataClearFlag = 1; m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_SHOW_RESULT); } else if (battleType == BattleType.CHONG_LOU && Obj_MyselfPlayer.GetMe().pataNum == 100) { Obj_MyselfPlayer.GetMe().pataClearFlag = 1; m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_SHOW_RESULT); } else { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_REVIVE_FREE); } } }
private void ExcuteOnCommand() { if (m_BattleActionBagList.ContainsKey(m_TurnCounter)) { if (m_StepCounter < m_BattleActionBagList[m_TurnCounter].Count) { ActionBag action_bag = m_BattleActionBagList[m_TurnCounter][m_StepCounter]; m_CurAttackCard = action_bag.attackCard; m_CurActionBag = action_bag; action_bag.attackCard.DoAttack(action_bag); m_StepCounter++; } else { m_StepCounter = 0; m_TurnCounter++; ExcuteOnCommand(); } } else { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_SHOW_TROPHY); } }
public override void Update() { m_DeltaTime += Time.deltaTime; if (m_DeltaTime >= m_TotalTime) { m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_CARD_FORWARD); } if (m_CopyPromptWidget != null && !m_CopyPromptWidget.activeInHierarchy) { TroopMember trmbr = m_Manager.GetBattlePlayer().GetBattleRoundData().FindCardByGUID(Obj_MyselfPlayer.GetMe().teamMemberArray[0]); m_CopyPromptWidget.GetComponent <CopyPromptUI>().Show(Obj_MyselfPlayer.GetMe().curSubcopy.subCopyID, true, trmbr.cardID); m_TotalTime = 10f; } if (m_CopyPromptWidget == null || !m_CopyPromptWidget.activeSelf) { if (m_HetiPromptWidget != null && !m_HetiPromptWidget.activeInHierarchy) { m_HetiPromptWidget.GetComponent <HeTiPromptUI>().Show(Obj_MyselfPlayer.GetMe().curSubcopy.subCopyID); m_TotalTime = 10f; } } }
private void ResetPlayer() { SetBatttleData(Obj_MyselfPlayer.GetMe().battleData, Obj_MyselfPlayer.GetMe().lastBattleDrops); BattleCardManager.Instance.ResetCard(BattleCardType.E_BATTLE_CARD_TYPE_SELF); m_ProcedureManager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_CARD_FORWARD); }