Beispiel #1
0
    private void ManagePlayerLeave(PacketLeaveGameAnswer packetLeaveGame)
    {
        GameManager.PlayerInfos.Remove(packetLeaveGame.PlayerId);

        if (m_lines.ContainsKey(packetLeaveGame.PlayerId))
        {
            Destroy(m_lines[packetLeaveGame.PlayerId].gameObject);
            m_lines.Remove(packetLeaveGame.PlayerId);
        }
    }
Beispiel #2
0
 private void ManageLeaveGameAnswerPacket(PacketLeaveGameAnswer packet)
 {
     Console.WriteLine("Leaved game : " + (packet.IsSuccess ? "success" : "failed"));
 }