Project_WL/Assets/Script/UI/Center/Rank/Rank_Level.cs

24 lines
596 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rank_Level : ScrollViewMgr
{
public RankCard m_MyRankCard;
DateTime t;
private void OnEnable()
{
if ((t - ServerInfo.ServerTime).TotalSeconds <= 0d)
{
t = ServerInfo.ServerTime.AddMinutes(10);
ServerInfo.Ins.Get_Rank("Level", false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
{
DSUtil.Fix_Rank(list);
Set_ScrollView(list, true);
});
}
}
}