diff --git a/docs/unity/part-3.md b/docs/unity/part-3.md index 92bc1cea..715dbf9f 100644 --- a/docs/unity/part-3.md +++ b/docs/unity/part-3.md @@ -202,7 +202,7 @@ public class RemotePlayer : MonoBehaviour canvas.worldCamera = Camera.main; // Get the username from the PlayerComponent for this object and set it in the UI - PlayerComponent? playerComp = PlayerComponent.FilterByEntityId(EntityId); + PlayerComponent playerComp = PlayerComponent.FindByEntityId(EntityId); if (playerComp is null) { string inputUsername = UsernameElement.text; @@ -216,7 +216,7 @@ public class RemotePlayer : MonoBehaviour Username = playerComp.Username; // Get the last location for this player and set the initial position - EntityComponent entity = EntityComponent.FilterByEntityId(EntityId); + EntityComponent entity = EntityComponent.FindByEntityId(EntityId); transform.position = new Vector3(entity.Position.X, entity.Position.Y, entity.Position.Z); // Register for a callback that is called when the client gets an