Beispiel #1
0
        public override void Initialize(bool addToManagers)
        {
            LoadStaticContent(ContentManagerName);
            TankList                  = new FlatRedBall.Math.PositionedObjectList <GreasyPlatypusSlapper.Entities.Tank>();
            TankList.Name             = "TankList";
            BulletList                = new FlatRedBall.Math.PositionedObjectList <GreasyPlatypusSlapper.Entities.Bullet>();
            BulletList.Name           = "BulletList";
            CameraEntityInstance      = new GreasyPlatypusSlapper.Entities.CameraEntity(ContentManagerName, false);
            CameraEntityInstance.Name = "CameraEntityInstance";
            TreadEffects              = new FlatRedBall.Math.PositionedObjectList <GreasyPlatypusSlapper.Entities.Effects.TreadEffect>();
            TreadEffects.Name         = "TreadEffects";
            PlayerSelectionUIInstance = GameScreenGum.GetGraphicalUiElementByName("PlayerSelectionUIInstance") as GreasyPlatypusSlapper.GumRuntimes.PlayerSelectionUIRuntime;


            PostInitialize();
            base.Initialize(addToManagers);
            if (addToManagers)
            {
                AddToManagers();
            }
        }
 private void AssignReferences()
 {
     PlayerSelectionUIInstance = this.GetGraphicalUiElementByName("PlayerSelectionUIInstance") as GreasyPlatypusSlapper.GumRuntimes.PlayerSelectionUIRuntime;
 }