Exemplo n.º 1
0
 protected virtual void StartMove()
 {
     AnimationMonitor.AnimationStarting(this);
     DragOverrideScript.DragAllowed = false;
     foreach (var swipableSection in SwipableSections)
     {
         swipableSection.StartMove();
     }
 }
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);
        }