15분 갱신 (테스트를 위해 기능 꺼둠)
This commit is contained in:
parent
96782161d0
commit
b134e6883e
|
|
@ -1,5 +1,6 @@
|
||||||
using PlayFab.ProgressionModels;
|
using PlayFab.ProgressionModels;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
public class RankingUI_Rank : uScrollViewMgr
|
public class RankingUI_Rank : uScrollViewMgr
|
||||||
{
|
{
|
||||||
|
|
@ -8,11 +9,26 @@ public class RankingUI_Rank : uScrollViewMgr
|
||||||
Dictionary<eDungeon, float> dic_RefreshTime = new Dictionary<eDungeon, float>();
|
Dictionary<eDungeon, float> dic_RefreshTime = new Dictionary<eDungeon, float>();
|
||||||
Dictionary<eDungeon, List<EntityLeaderboardEntry>> dic_ranks = new Dictionary<eDungeon, List<EntityLeaderboardEntry>>();
|
Dictionary<eDungeon, List<EntityLeaderboardEntry>> dic_ranks = new Dictionary<eDungeon, List<EntityLeaderboardEntry>>();
|
||||||
|
|
||||||
|
protected override void Awake()
|
||||||
|
{
|
||||||
|
base.Awake();
|
||||||
|
Act_Repeat_for1sec = () =>
|
||||||
|
{
|
||||||
|
var keys = dic_RefreshTime.Keys.ToArray();
|
||||||
|
for (int i = 0; i < keys.Length; i++)
|
||||||
|
{
|
||||||
|
if (dic_RefreshTime[keys[i]] > 0f)
|
||||||
|
dic_RefreshTime[keys[i]] -= 1f;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
public void Set(eDungeon dungeon)
|
public void Set(eDungeon dungeon)
|
||||||
{
|
{
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
|
||||||
|
//if (dic_RefreshTime[dungeon] <= 0f)
|
||||||
|
{
|
||||||
var leaderboard = MyValue.dic_Leaderboard[dungeon];
|
var leaderboard = MyValue.dic_Leaderboard[dungeon];
|
||||||
ServerInfo.Ins.Get_Rank(leaderboard, rank100 =>
|
ServerInfo.Ins.Get_Rank(leaderboard, rank100 =>
|
||||||
{
|
{
|
||||||
|
|
@ -28,4 +44,5 @@ public class RankingUI_Rank : uScrollViewMgr
|
||||||
|
|
||||||
ServerInfo.Ins.Get_MyRank(leaderboard, my => { myRank.Set(my); myRank.Set(MyEnumToInt.Ins.Get_Int(dungeon)); });
|
ServerInfo.Ins.Get_MyRank(leaderboard, my => { myRank.Set(my); myRank.Set(MyEnumToInt.Ins.Get_Int(dungeon)); });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue