Ejemplo n.º 1
0
        public void InitKeyBinding()
        {
            var handler = new KeyHandler(UiConstant.menuWindowLayer, BlockType.None);

            handler.BindKeyAction(UserInputKey.OpenMenu, (data) =>
            {
                ShowMenu(true);
            });
            menuUiAdapter.RegisterOpenKey(handler);
            DynamicKeyBinding();
        }
Ejemplo n.º 2
0
        public void InitKeyBinding()
        {
            var receiver = new KeyReceiver(UiConstant.menuWindowLayer, BlockType.None);

            receiver.AddAction(UserInputKey.OpenMenu, (data) =>
            {
                ShowMenu(true);
            });
            //menuUiAdapter.RegisterKeyReceive(receiver);
            menuUiAdapter.RegisterOpenKey(receiver);
            DynamicKeyBinding();
        }