Exemple #1
0
        protected override void ReverseAnimations(bool hasCallback = false)
        {
            base.ReverseAnimations(hasCallback);

            System.Action callback = null;
            if (hasCallback)
            {
                callback = CompletedTextAnimations;
            }

            PositionTextAnim.Stop();
            PositionTextAnim.Reverse(callback);
            PointsTextAnim.Stop();
            PointsTextAnim.Reverse(callback);
        }
Exemple #2
0
        protected override void PlayAnimations(bool hasCallback)
        {
            base.PlayAnimations(hasCallback);

            System.Action callback = null;
            if (hasCallback)
            {
                callback = CompletedTextAnimations;
            }

            PositionTextAnim.Stop();
            PositionTextAnim.Play(callback);
            PointsTextAnim.Stop();
            PointsTextAnim.Play(callback);
        }