Ejemplo n.º 1
0
    private void Streamer_GuestConnected(object sender, Parsec.Parsec.ParsecGuest guest)
    {
        int iPlayer = GetFreePlayer();

        if (iPlayer == 0)
        {
            return;
        }
        SpawnPlayer(iPlayer, guest);
    }
Ejemplo n.º 2
0
 private void Streamer_GuestDisconnected(object sender, Parsec.Parsec.ParsecGuest guest)
 {
     if (m_Players == null)
     {
         return;
     }
     for (int i = 0; i < m_Players.Length; i++)
     {
         if (m_Players[i] != null && (m_Players[i].m_AssignedGuest.id == guest.id))
         {
             m_Players[i].BreakDown();
             Destroy(m_Players[i]);
             m_Players[i] = null;
         }
     }
 }