public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { actionhandler.clickAction(MouseActions.objectType.terrain, transform.gameObject, ""); } }
public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { string barrierID = transform.parent.name.Substring("Barrier".Length); actionhandler.clickAction(MouseActions.objectType.barrier, transform.gameObject, barrierID); } }
public void OnPointerClick(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { string highwayID = transform.name.Substring("Highway".Length); actionhandler.clickAction(MouseActions.objectType.highway, transform.gameObject, highwayID); } }