示例#1
0
        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);
        }
示例#2
0
        private void Resize()
        {
            var size = Terp.Interpolate(1, maxSize, _curve, time, ref _counterS);

            transform.localScale = new Vector3(size, size, size);
        }
示例#3
0
        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);
        }