public void OnPointerClick(PointerEventData eventData) { master.overviewDropdownDestroy(); if (eventData.button == PointerEventData.InputButton.Left && eventData.clickCount == 1) { master.clickedOnInterfaceTargetTile(target); master.overviewDropdownDestroy(); } if (eventData.button == PointerEventData.InputButton.Left && eventData.clickCount == 2) { //Debug.Log("Double Click"); } if (eventData.button == PointerEventData.InputButton.Right && eventData.clickCount == 1) { owner.alignTowardsTarget(target); } }
public void OnPointerClick(PointerEventData eventData) { master.overviewDropdownDestroy(); if (eventData.button == PointerEventData.InputButton.Left && eventData.clickCount == 1) { //Debug.Log("Single Click"); } if (eventData.button == PointerEventData.InputButton.Left && eventData.clickCount == 2) { master.addTarget(target, this); } if (eventData.button == PointerEventData.InputButton.Right && eventData.clickCount == 1) { master.overviewDropdownAdd(this, eventData); } }