public PlatformGenerator(LocationChildren Platforms, LocationDisposeManager DisposedManager, PlayerManager player, LocationPlatformManager PlatformsManager) { this._platforms = Platforms; this._disposedManager = DisposedManager; this._player = player; this._platformsManager = PlatformsManager; }
public override void Initialize() { GlobalPlatformContainer = new GameObject("Platforms"); PlatformContainer = new GameObject("PlatformContainer"); DisposedPlatformContainer = new GameObject("DisposedPlatformContainer"); GlobalPlatformContainer.AddChild(PlatformContainer); GlobalPlatformContainer.AddChild(DisposedPlatformContainer); PlatformsManager = new LocationPlatformManager(platforms, startPlatforms, transitionPlatforms, platformsInfo); Platforms = new LocationChildren(PlatformContainer, DisposedPlatformContainer, PlatformsManager); DisposedManager = new LocationDisposeManager(Platforms); Generator = new PlatformGenerator(Platforms, DisposedManager, Player, PlatformsManager); PlayerData.PlatformType = 0; DisposeDistance = SetDisposeDistance; MinDisposeMultiply = SetMinDisposeMultiply; GenerateDistance = SetGenerateDistance; MaxGeneratePlatforms = SetMaxGeneratePlatforms; }
public LocationChildren(GameObject PlatformContainer, GameObject DisposedPlatformContainer, LocationPlatformManager PlatformsManager) { this.platformContainer = PlatformContainer; this.disposedPlatformContainer = DisposedPlatformContainer; this.platformsManager = PlatformsManager; }