Beispiel #1
0
        public override void LoadContent(ContentManager Content)
        {
            managerIsland.LoadContent(Content);
            managerPlayerUnits.LoadContent(Content);
            managerPlayerBuildings.LoadContent(Content);
            managerUI.LoadContent(Content);
            managerEnemies.LoadContent(Content);

            SelectRectangle.LoadContent(Content);

            cursor = Content.Load <Texture2D>("Cursor");

            managerMouse.MouseEventHandler += (sender, e) =>
            {
                if (!start)
                {
                    start     = true;
                    increment = 0.1f;
                    fadeOut   = 0;
                }

                if (showSummary)
                {
                    showSummary     = false;
                    Battleship.move = false;
                    ManagerBuildings.goldMines.Clear();

                    Initializer();
                    LoadContent(Content);
                }
            };
        }
Beispiel #2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            managerMap.LoadContent(Content);
            managerUnits.LoadContent(Content);
            managerEnemies.LoadContent(Content);
            managerBuildings.LoadContent(Content);
            managerUI.LoadContent(Content);

            SelectRectangle.LoadContent(Content);
        }