コード例 #1
0
    public static IEnumerator EaseExpoInScaleFromTo(Transform t, float f, float to, float animationTime)
    {
        float elapsedTime = 0;

        while (elapsedTime < animationTime)
        {
            t.localScale = Vector3.one * PennerAnimation.ExpoEaseInOut(elapsedTime,
                                                                       f,
                                                                       to - f,
                                                                       animationTime);
            elapsedTime += Time.deltaTime;
            yield return(0);
        }
        t.localScale = Vector3.one * to;
    }