Exemplo n.º 1
0
        protected override void Update()
        {
            foreach (Player player in Game.Instance.Players)
            {
                MenuInputBinding        binding    = player.MenuBindings;
                List <InputManager.Key> selectKeys = binding.GetKeys(MenuInputBinding.Button.Select);

                if (InputManager.KeyPressed(selectKeys))
                {
                    RequestStateChange(new MainMenuState());
                }
            }
        }
Exemplo n.º 2
0
 public Player()
 {
     MenuBindings = new MenuInputBinding();
     menuAvatar   = new MenuAvatar();
     //menuAvatar = AddComponent<MenuAvatar>(); // Menu avatar is no longer a component
 }