public void SendTransform()
 {
     if (lastState != null)
     {
         if (lastState.UpdateIfDifferent() && timeLastSending >= sendingPeriod)
         {
             lastState.DoSend();
             timeLastSending = 0f;
         }
         else
         {
             timeLastSending += Time.deltaTime;
         }
     }
 }