Esempio n. 1
0
        void Awake()
        {
            DontDestroyOnLoad(gameObject);

            isConnected = false;

            m_Queue = new Queue();

            m_oSendRecycle = new ThreadQueue <IPackageData>();
            m_oSendRecycle.Create();
            m_oRecieveRecycle = new ThreadQueue <IPackageData>();
            m_oRecieveRecycle.Create();
            m_oRecieveQueue = new ThreadQueue <IPackageData>();
            m_oRecieveQueue.Create();

            m_oRecieveMemPool = new MemPool();
            m_oRecieveMemPool.Create();


            m_CurrentSocketClient = null;


            m_SocketList = new List <ISocketClient>();


            m_IP   = "127.0.0.1";
            m_Port = 0;
        }