Beispiel #1
0
        internal static void Destroy()
        {
            IDisposable instance = Peer2Peer.m_instance;

            if (instance != null)
            {
                instance.Dispose();
            }
            Peer2Peer.m_instance        = null;
            Peer2Peer.NetworkingEnabled = false;

            // HACK [vicent] we need to avoid warning as error!
            if (Peer2Peer.NetworkingEnabled)
            {
                Peer2Peer.m_instance = null;
            }
        }
        internal static void Destroy()
        {
            IDisposable instance = Peer2Peer.m_instance;
            if (instance != null)
            {
                instance.Dispose();
            }
            Peer2Peer.m_instance = null;
            Peer2Peer.NetworkingEnabled = false;

            // HACK [vicent] we need to avoid warning as error!
            if (Peer2Peer.NetworkingEnabled)
            {
                Peer2Peer.m_instance = null;
            }
        }
 internal static void Init(bool server)
 {
     Peer2Peer.m_instance = new Peer2Peer();
     Peer2Peer.m_isServer = server;
 }
Beispiel #4
0
 internal static void Init(bool server)
 {
     Peer2Peer.m_instance = new Peer2Peer();
     Peer2Peer.m_isServer = server;
 }