Пример #1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (eventData.button == PointerEventData.InputButton.Left)
     {
         actionhandler.clickAction(MouseActions.objectType.terrain, transform.gameObject, "");
     }
 }
Пример #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);
     }
 }
Пример #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);
     }
 }