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); }
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>(); } }
void Awake() { RippleControl.Initialize(); thisImage = gameObject.GetComponent <Graphic>(); }
void Awake() { RippleControl.Initialize(); Setup(); }