Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
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;
            }
        }
Ejemplo n.º 3
0
 internal static void Init(bool server)
 {
     Peer2Peer.m_instance = new Peer2Peer();
     Peer2Peer.m_isServer = server;
 }
Ejemplo n.º 4
0
 internal static void Init(bool server)
 {
     Peer2Peer.m_instance = new Peer2Peer();
     Peer2Peer.m_isServer = server;
 }