Exemple #1
0
        private void LaunchAnimationScrollingOnToken()
        {
            if (this.tokenCursor < this.textToken2Ds.Count)
            {
                TextToken2D textToken2D = this.textToken2Ds[this.tokenCursor];

                TextScrollingAnimation textScrollingAnimation = new TextScrollingAnimation(0, textToken2D.FullText.Length, Time.FromSeconds(textToken2D.FullText.Length * 1 / this.scrollingSpeed), Astrategia.Animation.AnimationType.ONETIME, Astrategia.Animation.InterpolationMethod.LINEAR);
                textToken2D.PlayAnimation(textScrollingAnimation);
            }
        }