public static T Create <T>(IMapGenerator <T> mapCreationStrategy) where T : IMap { if (mapCreationStrategy == null) { Debug.LogError(nameof(mapCreationStrategy) + "Map creation strategy cannot be null"); } return(mapCreationStrategy.CreateMap()); }
public IMap GetMap(int width, int heigth, int countPanzer) { return(mapGenerator.CreateMap(width, heigth, countPanzer)); }