예제 #1
0
 public PlatformGenerator(LocationChildren Platforms, LocationDisposeManager DisposedManager, PlayerManager player, LocationPlatformManager PlatformsManager)
 {
     this._platforms        = Platforms;
     this._disposedManager  = DisposedManager;
     this._player           = player;
     this._platformsManager = PlatformsManager;
 }
예제 #2
0
        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;
        }
예제 #3
0
 public LocationChildren(GameObject PlatformContainer, GameObject DisposedPlatformContainer, LocationPlatformManager PlatformsManager)
 {
     this.platformContainer         = PlatformContainer;
     this.disposedPlatformContainer = DisposedPlatformContainer;
     this.platformsManager          = PlatformsManager;
 }