Пример #1
0
    protected override void UICloseAnimation(System.Action callback)
    {
        Vector3 start = Vector3.one;
        Vector3 end   = new Vector3(0f, 0f, 1f);

        AnimCurveController.Scale(PopupSystem.GetCloseCurve(), start, end, animTime, moveTarget, () =>
        {
            if (callback != null)
            {
                callback();
            }
        });
    }