コード例 #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);
     }
 }