Пример #1
0
 public void Initialize(KeyBindNode keyBindNode)
 {
     this.keyBindNode      = keyBindNode;
     this.keyBindID        = keyBindNode.MyKeyBindID;
     this.slotLabel.text   = keyBindNode.MyLabel;
     this.buttonLabel.text = (keyBindNode.MyControl ? "ctrl+" : "") + (keyBindNode.MyShift ? "shift+" : "") + keyBindNode.MyKeyCode.ToString();
 }
Пример #2
0
 public void Initialize(KeyBindNode keyBindNode)
 {
     //Debug.Log("KeyBindSlotScript.Initialize()");
     this.keyBindNode = keyBindNode;
     this.keyBindID   = keyBindNode.MyKeyBindID;
     //Debug.Log("KeyBindSlotScript.Initialize(): keyBindID: " + this.keyBindID);
     this.slotLabel.text           = keyBindNode.MyLabel;
     this.keyboardButtonLabel.text = (keyBindNode.MyControl ? "ctrl+" : "") + (keyBindNode.MyShift ? "shift+" : "") + keyBindNode.MyKeyCode.ToString();
     this.joystickButtonLabel.text = keyBindNode.MyJoystickKeyCode.ToString();
     this.mobileButtonLabel.text   = keyBindNode.MyMobileKeyCode.ToString();
 }