diff --git a/Assets/Script/Server/ServerInfo.cs b/Assets/Script/Server/ServerInfo.cs index 323691152..cb3f341c5 100644 --- a/Assets/Script/Server/ServerInfo.cs +++ b/Assets/Script/Server/ServerInfo.cs @@ -484,12 +484,22 @@ public class ServerInfo : MyCoroutine { NetWait.Ins.Set(true); PlayFabProgressionAPI.GetLeaderboardAroundEntity(new GetLeaderboardAroundEntityRequest - { LeaderboardName = leaderboard, MaxSurroundingEntries = 1 }, + { LeaderboardName = leaderboard, MaxSurroundingEntries = 1, + Entity = new PlayFab.ProgressionModels.EntityKey { Id = m_LoginInfo.PlayFabId, Type = "title_player_account" } }, result => { NetWait.Ins.Set(false); if (!DSUtil.CheckNull(result) && result.Rankings.Count > 0) { + for (int i = 0; i < result.Rankings.Count; i++) + { + var temp = result.Rankings[i]; + if (temp.Entity.Id.Equals(m_LoginInfo.PlayFabId)) + { + my(temp); + break; + } + } } else { @@ -512,6 +522,7 @@ public class ServerInfo : MyCoroutine NetWait.Ins.Set(false); if (!DSUtil.CheckNull(result) && result.Rankings.Count > 0) { + _act100?.Invoke(result.Rankings); } else { diff --git a/Assets/Script/UI/Map/MapChoiceUI_Dungeon.cs b/Assets/Script/UI/Map/MapChoiceUI_Dungeon.cs index 676e1e75e..4917da82e 100644 --- a/Assets/Script/UI/Map/MapChoiceUI_Dungeon.cs +++ b/Assets/Script/UI/Map/MapChoiceUI_Dungeon.cs @@ -69,6 +69,7 @@ public class MapChoiceUI_Dungeon : uScrollViewMgr case eDungeon.d2_Maze: SelectLv = Mathf.Max(1, SelectLv - 1); texts_maze[0].text = texts_maze[1].text = ""; + ServerInfo.Ins.Get_Rank("Rank_Maze", rank100 => { }); ServerInfo.Ins.Get_MyRank("Rank_Maze", my => { if (DSUtil.CheckNull(my))