Init() публичный Метод

public Init ( ) : void
Результат void
Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            structOptionsMain = new StructOptionsMain();
            structOptionsMain.Graphics = graphics;
            structOptionsMain.Content = Content;
            structOptionsMain.SpriteBatch = spriteBatch;
            structOptionsMain.SpriteFont = Content.Load<SpriteFont>("MenuFont");
            structOptionsMain.Ch = ch;
            oMenu = new OptionsMenu(structOptionsMain);

            p.Load(Content);
            p.SetPlayerPos(spriteBatch);
            hud.Load(Content);
            intro.Load(Content, graphics);
            credit.Load(Content, graphics);
            oMenu.Init();
            gameOverMenu.Load();
            shield.Load();
            pickUp.Load(Content);
            if (spawnPickup >= 70)
            {
                pickUp.Load(Content);
            }
            machineGun.Load();
            extraLife.Load();

            speedUp.Load();

            mainMenu.Load(graphics.GraphicsDevice, scores);
            background = new Background(GraphicsDevice, Content);
            loadingScreen = new LoadingScreen(Content, graphics.GraphicsDevice);
            kbm.Load();

            foreach (Weapon wep in p.weapList)
            {
                wep.Load(Content, p.GetDirection());
            }
        }