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

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