public void ShowCard(AnnotationData annotationData) { cardState = ScreenCardState.AnimatingIn; NotifyStateChanged(); PopulateScreenCard(annotationData); m_AnimationProgress = 0f; }
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(); } }
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(); } }
private void HideCardImmediate() { cardState = ScreenCardState.Hidden; contentLayoutGroup.padding.top = (int)scrollRect.viewport.rect.height; }
public void HideCard() { cardState = ScreenCardState.AnimatingOut; NotifyStateChanged(); }