Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit d9a5fad

Browse files
LethalchipRReverser
authored andcommitted
filter -> find fixes
1 parent 2bede0b commit d9a5fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/unity/part-3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public class RemotePlayer : MonoBehaviour
202202
canvas.worldCamera = Camera.main;
203203

204204
// Get the username from the PlayerComponent for this object and set it in the UI
205-
PlayerComponent? playerComp = PlayerComponent.FilterByEntityId(EntityId);
205+
PlayerComponent playerComp = PlayerComponent.FindByEntityId(EntityId);
206206
if (playerComp is null)
207207
{
208208
string inputUsername = UsernameElement.text;
@@ -216,7 +216,7 @@ public class RemotePlayer : MonoBehaviour
216216
Username = playerComp.Username;
217217

218218
// Get the last location for this player and set the initial position
219-
EntityComponent entity = EntityComponent.FilterByEntityId(EntityId);
219+
EntityComponent entity = EntityComponent.FindByEntityId(EntityId);
220220
transform.position = new Vector3(entity.Position.X, entity.Position.Y, entity.Position.Z);
221221

222222
// Register for a callback that is called when the client gets an

0 commit comments

Comments
 (0)