示例#1
0
        public void Update()
        {
            if (mSocket == null)
            {
                return;
            }

            if (0 == mNextUpdateTime || mKCP.CurrentMS >= mNextUpdateTime)
            {
                mKCP.Update();
                mNextUpdateTime = mKCP.Check();
            }
        }
示例#2
0
        public void Update()
        {
            if (this.listener == null)
            {
                return;
            }

            if (0 == mNextUpdateTime || mKCP.CurrentMS >= mNextUpdateTime)
            {
                mKCP.Update();
                mNextUpdateTime = mKCP.Check();
            }
        }