Ejemplo n.º 1
0
 public void ShowCard(AnnotationData annotationData)
 {
     cardState = ScreenCardState.AnimatingIn;
     NotifyStateChanged();
     PopulateScreenCard(annotationData);
     m_AnimationProgress = 0f;
 }
Ejemplo n.º 2
0
        private void ContinueHideCardAnimation()
        {
            float num  = 1.25f;
            float num2 = animationSpeed;
            float num3 = scrollRect.verticalNormalizedPosition + num2;

            scrollRect.verticalNormalizedPosition = num3;
            if (num3 >= num)
            {
                cardState = ScreenCardState.Hidden;
                NotifyStateChanged();
            }
        }
Ejemplo n.º 3
0
        private void ContinueShowCardAnimation()
        {
            float num = animationSpeed;

            m_AnimationProgress = Mathf.Clamp01(m_AnimationProgress + num);
            float num2 = EaseOutBounceCurve(m_AnimationProgress);
            float num3 = scrollRect.viewport.rect.height * (1f - num2);

            contentLayoutGroup.padding.top = (int)num3;
            if (m_AnimationProgress >= 1f)
            {
                contentLayoutGroup.padding.top = 0;
                cardState = ScreenCardState.Visible;
                NotifyStateChanged();
            }
        }
Ejemplo n.º 4
0
 private void HideCardImmediate()
 {
     cardState = ScreenCardState.Hidden;
     contentLayoutGroup.padding.top = (int)scrollRect.viewport.rect.height;
 }
Ejemplo n.º 5
0
 public void HideCard()
 {
     cardState = ScreenCardState.AnimatingOut;
     NotifyStateChanged();
 }