コード例 #1
0
 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();
 }
コード例 #2
0
 public override void Update()
 {
     m_DeltaTime += Time.deltaTime;
     if (m_DeltaTime >= m_TotalTime)
     {
         m_Manager.ChangProcedure(BattleProcedureType.E_BATTLE_PROCEDURE_BATTLE_END);
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 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);
         }
     }
 }
コード例 #5
0
 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);
     }
 }
コード例 #6
0
        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;
                }
            }
        }
コード例 #7
0
 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);
 }