private void Alpha() { var alpha = Terp.Interpolate(_startAlpha, newColor.a, _curve, time, ref _counterA); _startMat.color = new Color(_startMat.color.r, _startMat.color.g, _startMat.color.b, alpha); }
private void Resize() { var size = Terp.Interpolate(1, maxSize, _curve, time, ref _counterS); transform.localScale = new Vector3(size, size, size); }
private void Move() { var x = Terp.Interpolate(_startPos.x, newPosition.position.x, _curve, time, ref _counterX); transform.position = new Vector3(x, transform.position.y, transform.position.z); }