Example #1
0
        public static void SpawnCreepInGame(this GameLevel gameLevel, CreepType type)
        {
            var path  = gameLevel.GetPathForCreep().ToList();
            var creep = gameLevel.CreateAndShowCreep(type, path[0], path[path.Count - 1]);

            foreach (var position in path)
            {
                creep.Path.Add(new Vector2D(position.X, position.Y));
            }
        }