Beispiel #1
0
 public void UpdateLocalPlayer(PlayerState playerState)
 {
     if (LocalPlayer == null)
     {
         CreateLocalPlayer(playerState.Position);
     }
     else
     {
         if (GameConfig.userReconsilation)
         {
             LocalPlayer.ValidatePosition(playerState.Position, LastServerAckedTick);
         }
         else
         {
             LocalPlayer.ApplyPosition(playerState.Position);
         }
     }
 }