コード例 #1
0
        public void DisplayCreepWalkingViaPathfinding()
        {
            var creep = new Creep(CreepType.Cloth, gameLevel.SpawnPoints[0]);
            var path  =
                gameLevel.GetPath(gameLevel.SpawnPoints[0], gameLevel.GoalPoints[0]).GetListOfCoordinates();

            creep.Path = path.Select(element => element + Vector2D.Half).ToList();
        }