Пример #1
0
 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);
     }
 }
Пример #2
0
        public void RemovePlayer(long uid)
        {
            MatchmakingPlayerElement matchmakingPlayerElement = FindElement(uid);

            if (matchmakingPlayerElement != null)
            {
                matchmakingPlayerElement.SetPlayer(null);
                matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Leaving);
            }
            UpdateInviteResearch();
        }
Пример #3
0
 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();
 }
Пример #4
0
        public void AddPlayer(FightPlayerInfo player)
        {
            MatchmakingPlayerElement matchmakingPlayerElement = FirstFreeElement();

            if (matchmakingPlayerElement != null)
            {
                matchmakingPlayerElement.SetPlayer(player);
                matchmakingPlayerElement.SetState(MatchmakingPlayerElement.InviteState.Normal);
            }
            UpdateInviteResearch();
        }