Ejemplo n.º 1
0
    void ScaleAwayUpdate()
    {
        easing = Mathf.Min(easing + Time.deltaTime * scaleAwaySpeed, 1);

        float scale = Easing.EaseInBack(0, 1, easing);

        transform.localScale = new Vector3(1 - scale, 1 - scale, 1);

        if (easing == 1)
        {
            easing    = 0;
            scaleAway = false;
            popupDone = false;
        }
    }