void Update()

in GameLiftExampleUnityProject/Assets/Scripts/Client/Client.cs [141:162]


    void Update()
    {
        if (this.localPlayer != null)
        {
            // Process any messages we have received over the network
            this.ProcessMessages();

            // Only send updates 20 times per second to avoid flooding server with messages
            this.updateCounter += Time.deltaTime;
            if (updateCounter < 0.05f)
            {
                return;
            }
            this.updateCounter = 0.0f;

            // Send current move command for server to process
            this.SendMove();

            // Receive new messages
            this.networkClient.Update();
        }
    }