Пример #1
0
        private IEnumerator Anim(EasyDraw fore)
        {
            int time = 0;

            while (true)
            {
                float scaleX = Easing.Ease(Easing.Equation.CubicEaseOut, time % 800, 0.01f, 1f, 800);

                fore.SetScaleXY(scaleX, 1);

                time += Time.deltaTime;

                yield return(null);
            }
        }