Skip to content

Commit 79ab5b6

Browse files
style: fixing spelling issue OnIsServerAuthoritatitive() -> OnIsServerAuthoritative (#2006)
1 parent 7f5dc1c commit 79ab5b6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

com.unity.netcode.gameobjects/Components/NetworkTransform.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,10 +943,9 @@ public void Teleport(Vector3 newPosition, Quaternion newRotation, Vector3 newSca
943943
}
944944

945945
/// <summary>
946-
/// Override this and return false to follow the owner authoritative
947-
/// Otherwise, it defaults to server authoritative
946+
/// Override this method and return false to switch to owner authoritative mode
948947
/// </summary>
949-
protected virtual bool OnIsServerAuthoritatitive()
948+
protected virtual bool OnIsServerAuthoritative()
950949
{
951950
return true;
952951
}
@@ -956,7 +955,7 @@ protected virtual bool OnIsServerAuthoritatitive()
956955
/// </summary>
957956
internal bool IsServerAuthoritative()
958957
{
959-
return OnIsServerAuthoritatitive();
958+
return OnIsServerAuthoritative();
960959
}
961960
}
962961
}

com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformOwnershipTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ protected override void Update()
267267
}
268268
}
269269

270-
protected override bool OnIsServerAuthoritatitive()
270+
protected override bool OnIsServerAuthoritative()
271271
{
272272
return false;
273273
}

0 commit comments

Comments
 (0)