Esempio n. 1
0
    /// <summary>
    /// 更新排行条目
    /// </summary>
    /// <param name="tl">Tl.</param>
    private void updateRank(PillageEnemyInfo mi)
    {
        ResourcesManager.Instance.LoadAssetBundleTexture(UserManager.Instance.getIconPath(mi.HeadIconId), icon);
        name.text = mi.playerName;
        int  type = MiningManagement.Instance.GetMiningSampleBySid(mi.sid).type;
        long time = ServerTimeKit.getSecondTime() - mi.time;

        if (type == (int)MiningTypePage.MiningGold)
        {
            timeDesc.text   = time <= 3600 ? LanguageConfigManager.Instance.getLanguage("mining_info5") : LanguageConfigManager.Instance.getLanguage("mining_info1", TimeKit.timeTransformDHM(time));
            detailDesc.text = LanguageConfigManager.Instance.getLanguage("mining_info3", mi.count.ToString());
        }
        else
        {
            timeDesc.text   = time <= 3600 ? LanguageConfigManager.Instance.getLanguage("mining_info6") : LanguageConfigManager.Instance.getLanguage("mining_info1", TimeKit.timeTransformDHM(time));
            detailDesc.text = LanguageConfigManager.Instance.getLanguage("mining_info4", mi.count.ToString());
        }
    }