Пример #1
0
 private void InitOpenKeyReveiver()
 {
     openKeyReceiver = new KeyReceiver(UiConstant.weaponBagWindowLayer, BlockType.None);
     openKeyReceiver.AddAction(UserInputKey.OpenWeaponBag, (data) =>
     {
         SwitchWeaponBagViewShow();
     });
     _adapter.RegisterOpenKey(openKeyReceiver);
     //_adapter.RegisterKeyReceive(openKeyReceiver);
 }
Пример #2
0
 private void InitOpenKeyReveiver()
 {
     _openKeyHandler = new KeyHandler(UiConstant.weaponBagWindowLayer, BlockType.None);
     _openKeyHandler.BindKeyAction(UserInputKey.OpenWeaponBag, (data) =>
     {
         if (_adapter.CanOpenBag)
         {
             SwitchWeaponBagViewShow();
         }
     });
     _adapter.RegisterOpenKey(_openKeyHandler);
     //_adapter.RegisterKeyReceive(openKeyhandler);
 }