void Update() { if (bConnent) { clientApp.Run(); if (currentTime < 0) { SendMovementMessage(); currentTime += delayTime; } else { currentTime -= Time.deltaTime; } } }