/// <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; } } }
public BattleFSM() { GLogger.Cyan("Current FSM Type:" + LogicConst.BattleType); }