Exemplo n.º 1
0
        protected virtual void EndMove()
        {
            foreach (var swipableSection in SwipableSections)
            {
                swipableSection.EndMove();
            }

            AnimationMonitor.AnimationStopping(this);
            DragOverrideScript.DragAllowed = true;
        }
Exemplo n.º 2
0
        protected virtual IEnumerator Open()
        {
            AnimationMonitor.AnimationStarting(this);
            var curveX = Curve.GetCurveX(1 - aspectRatioHandler.Offset / aspectRatioHandler.Width);

            while (aspectRatioHandler.Offset > 0)
            {
                yield return(null);

                curveX += Time.deltaTime / AnimationTime;
                aspectRatioHandler.Offset = aspectRatioHandler.Width - Curve.GetCurveY(curveX) * aspectRatioHandler.Width;
            }
            aspectRatioHandler.Offset = 0;
            AnimationMonitor.AnimationStopping(this);
        }