Exemplo n.º 1
0
 private void OnLeaderChanged(GroupMember oldLeader)
 {
     if (this.m_leader != null)
     {
         GroupHandler.SendLeaderChanged(this.m_leader);
     }
     Group.GroupLeaderChangedHandler leaderChanged = Group.LeaderChanged;
     if (leaderChanged == null)
     {
         return;
     }
     leaderChanged(oldLeader, this.m_leader);
 }
Exemplo n.º 2
0
        private void OnLeaderChanged(GroupMember oldLeader)
        {
            // if everyone is offline, the Group has no leader
            if (m_leader != null)
            {
                GroupHandler.SendLeaderChanged(m_leader);
            }

            var evt = LeaderChanged;

            if (evt != null)
            {
                evt(oldLeader, m_leader);
            }
        }