| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | GuildManager.Instance.OnRefreshFairyList += OnRefreshFairyList; |
| | | teamType = functionOrder; |
| | | Display(); |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | GuildManager.Instance.OnRefreshFairyList -= OnRefreshFairyList; |
| | | } |
| | | |
| | | private void OnRefreshFairyList() |
| | | { |
| | | if (viewPlayerData == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (!GuildManager.Instance.guildsDict.ContainsKey(viewPlayerData.FamilyID)) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (!UIManager.Instance.IsOpened<GuildPreviewWin>()) |
| | | { |
| | | UIManager.Instance.OpenWindow<GuildPreviewWin>(viewPlayerData.FamilyID); |
| | | } |
| | | } |
| | | |
| | | private void Display() |
| | |
| | | btnGuild.SetActive(true); |
| | | guildEmblem.Display(viewPlayerData.FamilyEmblemID, viewPlayerData.FamilyEmblemWord, 0.35f); |
| | | txtGuildName.text = viewPlayerData.FamilyName; |
| | | GuildManager.Instance.SendFindGuildNoDecrypt(viewPlayerData.FamilyID.ToString()); |
| | | |
| | | } |
| | | |
| | | private void DisplayPlayerInfo(OtherPlayerDetailManager.ViewPlayerData viewPlayerData) |
| | |
| | | { |
| | | return; |
| | | } |
| | | UIManager.Instance.OpenWindow<GuildPreviewWin>(viewPlayerData.FamilyID); |
| | | GuildManager.Instance.SendFindGuildNoDecrypt(viewPlayerData.FamilyID.ToString()); |
| | | } |
| | | |
| | | |