public override void AddToManagers() { Terrain.AddToManagers(mLayer); GameScreenGum.AddToManagers(); FlatRedBall.FlatRedBallServices.GraphicsOptions.SizeOrOrientationChanged += RefreshLayoutInternal; FlatRedBall.SpriteManager.AddLayer(UIBoatLayer); UIBoatLayerGum = RenderingLibrary.SystemManagers.Default.Renderer.AddLayer(); UIBoatLayerGum.Name = "UIBoatLayerGum"; FlatRedBall.Gum.GumIdb.Self.AddGumLayerToFrbLayer(UIBoatLayerGum, UIBoatLayer); Factories.DockFactory.Initialize(ContentManagerName); Factories.CannonballFactory.Initialize(ContentManagerName); Factories.ExplosionFactory.Initialize(ContentManagerName); Factories.BulletFactory.Initialize(ContentManagerName); Factories.SkeletonFactory.Initialize(ContentManagerName); Factories.DockFactory.AddList(DockList); Factories.CannonballFactory.AddList(CannonballList); Factories.ExplosionFactory.AddList(ExplosionList); Factories.BulletFactory.AddList(BulletList); Factories.SkeletonFactory.AddList(EnemyList); PlayerBoat.AddToManagers(mLayer); PlayerInstance.AddToManagers(mLayer); SpeedMeter.AddToManagers(UIBoatLayer); base.AddToManagers(); AddToManagersBottomUp(); CustomInitialize(); }
public override void AddToManagers() { LoadingScreenGum.AddToManagers(); FlatRedBall.FlatRedBallServices.GraphicsOptions.SizeOrOrientationChanged += RefreshLayoutInternal; base.AddToManagers(); AddToManagersBottomUp(); CustomInitialize(); }