public HudComponent(Game game, PlayerComponent player, SceneComponent scene)
            : base(game)
        {
            Player = player;
            Scene = scene;

            controls.Add(toolbar = new Toolbar(this));
            controls.Add(debugInfos = new DebugInfos(this));
            controls.Add(compass = new Compass(this));
        }
示例#2
0
        public HudComponent(Game game, PlayerComponent player, SceneComponent scene, InputComponent input)
            : base(game)
        {
            Player = player;
            Scene = scene;
            Input = input;

            controls.Add(toolbar = new Toolbar(this, Player));
            controls.Add(debugInfos = new DebugInfos(this, Player));
            controls.Add(compass = new Compass(this, Player));
            controls.Add(miniMap = new MiniMap(this, Scene));
        }