예제 #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;
		}