From 84bb7b1e26d22b569417664aabf8a8f686d92228 Mon Sep 17 00:00:00 2001 From: Ino Date: Wed, 29 Jan 2025 08:07:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9E=AD=ED=82=B9=20=EB=B0=9B=EC=95=84?= =?UTF-8?q?=EC=98=A4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Server/ServerInfo.cs | 13 ++++++++++++- Assets/Script/UI/Map/MapChoiceUI_Dungeon.cs | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) 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))