public void Init() { for (int i = 0; i < m_playersElements.Count; i++) { MatchmakingPlayerElement matchmakingPlayerElement = m_playersElements[i]; matchmakingPlayerElement.SetPlayer(null); matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Empty); } }
public void RemovePlayer(long uid) { MatchmakingPlayerElement matchmakingPlayerElement = FindElement(uid); if (matchmakingPlayerElement != null) { matchmakingPlayerElement.SetPlayer(null); matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Leaving); } UpdateInviteResearch(); }
public void RemoveAllPlayers() { for (int i = 0; i < m_playersElements.Count; i++) { MatchmakingPlayerElement matchmakingPlayerElement = m_playersElements[i]; matchmakingPlayerElement.SetPlayer(null); matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Empty); } MatchmakingPopupHandler.instance.RemoveAllStackedMessages(); UpdateInviteResearch(); }
public void AddPlayer(FightPlayerInfo player) { MatchmakingPlayerElement matchmakingPlayerElement = FirstFreeElement(); if (matchmakingPlayerElement != null) { matchmakingPlayerElement.SetPlayer(player); matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Normal); } UpdateInviteResearch(); }