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); }
public void OnMouseEnter() { if (EventSystem.current.IsPointerOverGameObject()) { return; } HoverIndicator.Select(); }
public virtual void OnMouseDown() { if (EventSystem.current.IsPointerOverGameObject()) { return; } Debug.Log(ToString() + " selected"); SelectionIndicator.Select(); EntityView.Instance.Clear(); EntityView.Instance.Bind(this); }
public void OnMouseEnter() { if (!Targetable) { return; } if (EventSystem.current.IsPointerOverGameObject()) { return; } HoverIndicator.Select(); if (Dragable) { Selector.Instance.DragEnd = this; } }