protected virtual void DestinationMarkerSet(object sender, DestinationMarkerEventArgs e) { PointerDelegates pf = e.target.GetComponent <PointerDelegates>(); if (pf != null) { pf.Set(); } }
private void DoTouchpadReleased(object sender, ControllerInteractionEventArgs e) { if (dragState == DragState.dragging) { Transform controllerTransform = e.controllerReference.actual.transform; draggingPointerDelegate.HoverDragEnd(); draggingPointerDelegate = null; } dragState = DragState.idle; }
protected virtual void DestinationMarkerHover(object sender, DestinationMarkerEventArgs e) { PointerDelegates pf = e.target.GetComponent <PointerDelegates>(); if (pf != null) { pf.Hover(); if (dragState == DragState.idle) { dragState = DragState.hovering; } } }
protected virtual void DestinationMarkerExit(object sender, DestinationMarkerEventArgs e) { PointerDelegates pf = e.target.GetComponent <PointerDelegates>(); if (pf != null) { pf.Exit(); if (dragState == DragState.caught) { dragState = DragState.dragging; draggingPointerDelegate = pf; pf.HoverDragStart(e.destinationPosition); } } }
void Awake() { pd = GetComponent <PointerDelegates>(); da = transform.parent.GetComponent <DragAround>(); }
void Awake() { pd = GetComponent <PointerDelegates>(); actualSize = transform.localScale; }
void Awake() { pd = GetComponent <PointerDelegates>(); actualSize = transform.localScale; txt = transform.parent.GetComponent <TextMeshPro>(); }
private void Awake() { pd = GetComponent <PointerDelegates>(); }