コード例 #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 LocationDisposeManager(LocationChildren children)
 {
     this.children = children;
 }