Ejemplo n.º 1
0
        private static IEnumerator ChangeInnerBorder(QuickPolygon shape, float endValue, InterpolateType interpolateType, float duration)
        {
            float startValue  = shape.GetBorderInnerScale();
            float timeElapsed = 0;

            while (timeElapsed < duration)
            {
                float newvalue = GetInterpolate(interpolateType, startValue, endValue, timeElapsed, duration);
                shape.SetBorderInnerScale(newvalue, true);
                yield return(new WaitForEndOfFrame());

                timeElapsed += Time.deltaTime;
            }
            shape.SetBorderInnerScale(endValue, true);
        }