/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here this.IsMouseVisible = true; // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); _myInterfaceMenu = new InterfaceStartMenu(this); _myDrawerStartMenu = new DrawerStartMenu(this, Content, _myInterfaceMenu); _randomator = new RandomStuff(907); _myInterface = new InterfaceBattle(this); _myDrawer = new DrawerBattle(this, Content, _myInterface); base.Initialize(); }
public DrawerStartMenu(Game1 myGame, ContentManager content, InterfaceStartMenu myInterface) : base(myGame, content) { _myInterface = myInterface; Load_content(); }