/// <summary> /// 进入战场 /// </summary> public void EnterBattileField() { for (int idx = 0; idx < AllFighters.Count; ++idx) { FightUnit unit = AllFighters[idx]; if (unit.IsDead) { continue; } unit.InitFightPos(CurRound); int fightPos = unit.GridPos + (unit.IsEnemy ? -1 : 1) * PathFinder.AREA_TOTAL; //unit.PathFinderObj.StartFind(fightPos); unit.GridPos = fightPos; unit.TargetPos = PathFinder.Grid2Pos(fightPos); unit.State = FightUnitState.Move; } }