示例#1
0
文件: RankText.cs 项目: Wieku/osu
        public void Appear()
        {
            this.FadeIn();

            if (rank < ScoreRank.A)
            {
                this
                .MoveToOffset(new Vector2(0, -20))
                .MoveToOffset(new Vector2(0, 20), 200, Easing.OutBounce);

                if (rank <= ScoreRank.D)
                {
                    this.Delay(700)
                    .RotateTo(5, 150, Easing.In)
                    .MoveToOffset(new Vector2(0, 3), 150, Easing.In);
                }

                this.FadeInFromZero(200, Easing.OutQuint);
                return;
            }

            flash.Colour = OsuColour.ForRank(rank);

            if (rank >= ScoreRank.S)
            {
                rankText.ScaleTo(1.05f).ScaleTo(1, 3000, Easing.OutQuint);
            }

            if (rank >= ScoreRank.X)
            {
                flash.FadeOutFromOne(3000);
                superFlash.FadeOutFromOne(800, Easing.OutQuint);
            }
            else
            {
                flash.FadeOutFromOne(1200, Easing.OutQuint);
            }
        }