protected override void LoadContent() { stage = new Stage(); stage.StageWidth = graphics.GraphicsDevice.Viewport.Width; stage.StageHeight = graphics.GraphicsDevice.Viewport.Height; stage.stage = stage; stage.AddChild(rootSprite); #if __MOBILE__ || DEBUG debugFont = Content.Load<SpriteFont>("MainFont"); #endif spriteBatch = new SpriteBatch(GraphicsDevice); }
private void AddedToStage(Event e) { stage = parent.stage; }