コード例 #1
0
        void AddEnterLineAnimation()
        {
            int       comparison = -Width;
            Animation animation  = new Animation();

            enterChatAnimation = animation;
            while (comparison < 0)
            {
                if ((comparison + (1 + Math.Abs(comparison * 0.1f))) > 0)
                {
                    comparison = 0;
                    continue;
                }
                else
                {
                    comparison = (int)(comparison + (1 + Math.Abs(comparison * 0.1f)));
                }
                animation.AddStep(comparison);
            }
            animation.Finish();
        }