private void OnMouseOver() { if (Input.GetMouseButtonDown(1)) { CharacterSelector.ResetToken(id); isPlaced = false; } }
public void OnPointerDown(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { Invoke("Select", 0.1f); } else if (eventData.button == PointerEventData.InputButton.Right) { CharacterSelector.ResetToken(id); } }
// Update is called once per frame public void OnPointerDown(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { CharacterSelector.PickupToken(this); } else if (eventData.button == PointerEventData.InputButton.Right) { CharacterSelector.ResetToken(id); } }