Update() 개인적인 메소드

private Update ( ) : void
리턴 void
예제 #1
0
    void UpdateNetwork()
    {
        if (socket != null)
        {
            socket.Update();

            var con = socket.IsConnected;
            if (wasConnected)
            {
                var time = Time.realtimeSinceStartup;
                if (time > timeLastCmd + pongCmdFreqInSecs)               // раз в 5 сек проверяем коннект
                {
                    cmdPong();
                }
            }
            wasConnected = con;
        }
    }
예제 #2
0
    //public UdpSocket udpSocket = new UdpSocket();
    //private Lockstep mLockStep = new Lockstep();
    //private FrameData mFrameData = new FrameData();
    #endregion

    public void Update()
    {
        tcpSock.Update();
        //mLockStep.Update();
    }