示例#1
0
 void SyncRank()
 {
     if (rankSynced)
     {
         return;
     }
     rankControl.GetRank(score, out rankString, out rankColor);
     rankSynced = true;
 }
示例#2
0
    public static string GetFormattedRankString(RankControl rankControl, float score)
    {
        if (Loader.judgeMode == 2)
        {
            return(LanguageLoader.GetText(score > 500000 ? 33 : 34));
        }
        string rankString;
        Color  rankColor;

        rankControl.GetRank(score, out rankString, out rankColor);
        return(string.Format(
                   "<color=#{0}>{1}</color>",
                   ColorUtility.ToHtmlStringRGBA(rankColor),
                   rankString
                   ));
    }