protected virtual void EndMove() { foreach (var swipableSection in SwipableSections) { swipableSection.EndMove(); } AnimationMonitor.AnimationStopping(this); DragOverrideScript.DragAllowed = true; }
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); }