コード例 #1
0
 public virtual void OnMouseDown()
 {
     if (!Clickable)
     {
         return;
     }
     if (EventSystem.current.IsPointerOverGameObject())
     {
         return;
     }
     if (Targetable)
     {
         Selector.SelectedEntity = this;
     }
     if (Dragable)
     {
         Selector.Instance.DragStart = this;
     }
     if (Selector.Instance.ordering)
     {
         return;
     }
     Debug.Log(ToString() + " selected");
     SelectionIndicator.Select();
     EntityView.Instance.Clear();
     EntityView.Instance.Bind(this);
     Debug.Log("mouse down " + this);
 }
コード例 #2
0
 public void OnMouseEnter()
 {
     if (EventSystem.current.IsPointerOverGameObject())
     {
         return;
     }
     HoverIndicator.Select();
 }
コード例 #3
0
 public virtual void OnMouseDown()
 {
     if (EventSystem.current.IsPointerOverGameObject())
     {
         return;
     }
     Debug.Log(ToString() + " selected");
     SelectionIndicator.Select();
     EntityView.Instance.Clear();
     EntityView.Instance.Bind(this);
 }
コード例 #4
0
 public void OnMouseEnter()
 {
     if (!Targetable)
     {
         return;
     }
     if (EventSystem.current.IsPointerOverGameObject())
     {
         return;
     }
     HoverIndicator.Select();
     if (Dragable)
     {
         Selector.Instance.DragEnd = this;
     }
 }