示例#1
0
        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;
        }
示例#2
0
        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>();
            }
        }
示例#3
0
		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>();
		}
示例#4
0
		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;
		}