Exemplo n.º 1
0
 public LevelGenerator(Vector2 origin, ILevelInfo levelInfo)
 {
     _levelInfo = levelInfo;
     _origin = origin;
     _obstacleFactory = _levelInfo.ObstacleFactory;
     _floatingBlockFactory = _levelInfo.FloatingBlockFactory;
     _platformLeftPrefab = _levelInfo.PlatformLeftPrefab;
     _platformMiddlePrefab = _levelInfo.PlatformMiddlePrefab;
     _platformRightPrefab = _levelInfo.PlatformRightPrefab;
 }
Exemplo n.º 2
0
 public DefaultLevelGenerator(GameObject platformLeftPrefab,
                              GameObject platformMiddlePrefab,
                              GameObject platformRightPrefab,
                              FloatingBlockFactoryBehaviour floatingBlockFactory,
                              FishFactoryBehaviour fishFactory,
                              Vector2 origin)
 {
     _platformLeftPrefab = platformLeftPrefab;
     _platformMiddlePrefab = platformMiddlePrefab;
     _platformRightPrefab = platformRightPrefab;
     _floatingBlockFactory = floatingBlockFactory;
     _fishFactory = fishFactory;
     _origin = origin;
 }