Ejemplo n.º 1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (eventData.button == PointerEventData.InputButton.Left)
     {
         actionhandler.clickAction(MouseActions.objectType.terrain, transform.gameObject, "");
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }