private static Control CreateUserInterface(Game game) { UserInterface ui = new UserInterface(game.GraphicsDevice); ui.DrawOrder = int.MaxValue; game.Components.Add(ui); var player = new InputActor(1); player.Add(new KeyboardDevice(PlayerIndex.One)); game.Components.Add(player); ui.Actors.Add(player); return(ui.Root); }