public void OnPointerExit(PointerEventData data) { if (toggleMask) { StartCoroutine(DelayedMaskCheck()); } if (currentRippleAnim) { currentRippleAnim.ClearRipple(); } currentRippleAnim = null; if (highlightWhen != HighlightActive.Never) { if (thisImage) { currentColor = thisImage.color; } animStartTime = Time.realtimeSinceStartup; state = 2; } hasLifted = true; }
private void MakeInkBlot(Vector3 pos) { if (currentRippleAnim) { currentRippleAnim.ClearRipple(); } if (moveTowardCenter) { currentRippleAnim = RippleControl.MakeRipple(pos, transform, rippleSize, rippleSpeed, rippleStartAlpha, rippleEndAlpha, rippleColor, gameObject.GetComponent <RectTransform>().position).GetComponent <RippleAnim>(); } else { currentRippleAnim = RippleControl.MakeRipple(pos, transform, rippleSize, rippleSpeed, rippleStartAlpha, rippleEndAlpha, rippleColor).GetComponent <RippleAnim>(); } }
private void MakeInkBlot (Vector3 pos) { if (currentRippleAnim) { currentRippleAnim.ClearRipple (); } if (moveTowardCenter) currentRippleAnim = RippleControl.MakeRipple (pos, transform, rippleSize, rippleSpeed, rippleStartAlpha, rippleEndAlpha, rippleColor, gameObject.GetComponent<RectTransform>().position).GetComponent<RippleAnim>(); else currentRippleAnim = RippleControl.MakeRipple (pos, transform, rippleSize, rippleSpeed, rippleStartAlpha, rippleEndAlpha, rippleColor).GetComponent<RippleAnim>(); }
public void OnPointerExit (PointerEventData data) { if (toggleMask) StartCoroutine (DelayedMaskCheck()); if (currentRippleAnim) { currentRippleAnim.ClearRipple (); } currentRippleAnim = null; if (highlightWhen != HighlightActive.Never) { currentColor = thisImage.color; animStartTime = Time.realtimeSinceStartup; state = 2; } hasLifted = true; }