コード例 #1
0
 /// <summary>
 /// 下一波敌人
 /// </summary>
 public void MoveNextTurn()
 {
     GLogger.Gray("MoveNextTurn--------->>>" + turnTeams.Count);
     if (turnTeams.Count == 0)
     {
         if (npcDataMgr.IsAllNpcStateOK(NpcType.Hero, NpcState.Attack))
         {
             timerMgr.AddTimer(0.5f, 0, (obj) =>
             {
                 GLogger.Cyan("MoveNextTurn.execOK-------------->>>>>");
                 if (execOK != null)
                 {
                     execOK();
                 }
             });
         }
     }
     else
     {
         this.SpawnNpcTeam();
         if (LogicConst.BattleType == BattleType.FreeBattle)
         {
             DoStartFight <FSearchState>(NpcType.Enemy);
         }
         else
         {
             DoStartFight <TSearchState>(NpcType.Enemy);
             battleFsm.GetGlobalVar <bool>("isTakeNewToken").value = true;
         }
     }
 }
コード例 #2
0
 public BattleFSM()
 {
     GLogger.Cyan("Current FSM Type:" + LogicConst.BattleType);
 }