Beispiel #1
0
 private void OnClick(PointerEventData data, UIRadioButton.State state, UIRadioButton.CallType callType)
 {
     if (data.button == PointerEventData.InputButton.Left)
     {
         button.onLeftClick();
         button.onLeftClickBtn(button.toggleButton);
     }
     else if (data.button == PointerEventData.InputButton.Middle)
     {
         OnMiddleClick();
     }
     else if (GameSettings.MODIFIER_KEY.GetKey(false) && data.button == PointerEventData.InputButton.Right)
     {
         OnMiddleClick();
     }
     else if (data.button == PointerEventData.InputButton.Right)
     {
         button.onRightClick();
     }
 }