Пример #1
0
        void Awake()
        {
            RippleControl.Initialize();
            thisImage   = GetComponent <Image>();
            rippleColor = thisImage.color;
            float h = 0f;
            float s = 0f;
            float v = 0f;

            Color.RGBToHSV(rippleColor, out h, out s, out v);
            rippleColor = Color.HSVToRGB(h, s, v - 0.3f);
        }
Пример #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
 void Awake()
 {
     RippleControl.Initialize();
     thisImage = gameObject.GetComponent <Graphic>();
 }
Пример #4
0
 void Awake()
 {
     RippleControl.Initialize();
     Setup();
 }