Skip to content

Commit c7b6dd0

Browse files
Apply suggestions from code review
Update summary comments Co-authored-by: Emma <emma.mcmillan@unity3d.com>
1 parent 606fab7 commit c7b6dd0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ public void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReade
668668
/// Determines whether the <see cref="NetworkAnimator"/> is <see cref="AuthorityModes.Server"/> or <see cref="AuthorityModes.Owner"/> based on the <see cref="AuthorityMode"/> field.
669669
/// Optionally, you can still derive from <see cref="NetworkAnimator"/> and override the <see cref="OnIsServerAuthoritative"/> method.
670670
/// </summary>
671-
public bool IsServerAuthoritative()
671+
/// <returns>True if this <see cref="NetworkAnimator"/> is server authoritative, false otherwise</returns>
672+
public bool IsServerAuthoritative()
672673
{
673674
return OnIsServerAuthoritative();
674675
}
@@ -1697,7 +1698,7 @@ private void InternalSetTrigger(int hash, bool isSet = true)
16971698
/// to forward a trigger to a client
16981699
/// </summary>
16991700
/// <param name="animationTriggerMessage">the payload containing the trigger data to apply</param>
1700-
/// <param name="rpcParams"></param>
1701+
/// <param name="rpcParams">Defined as it's used to send the RPC to be invoked on this client</param>
17011702
[Rpc(SendTo.NotAuthority, AllowTargetOverride = true, InvokePermission = RpcInvokePermission.Owner)]
17021703
internal void SendAnimTriggerRpc(AnimationTriggerMessage animationTriggerMessage, RpcParams rpcParams = default)
17031704
{
@@ -1709,7 +1710,7 @@ internal void SendAnimTriggerRpc(AnimationTriggerMessage animationTriggerMessage
17091710
/// a trigger to a client
17101711
/// </summary>
17111712
/// <param name="animationTriggerMessage">the payload containing the trigger data to apply</param>
1712-
/// <param name="rpcParams"> unused</param>
1713+
/// <param name="rpcParams"> used to send the RPC to be invoked on this client</param>
17131714
[Rpc(SendTo.NotServer, AllowTargetOverride = true)]
17141715
internal void SendClientAnimTriggerRpc(AnimationTriggerMessage animationTriggerMessage, RpcParams rpcParams = default)
17151716
{

0 commit comments

Comments
 (0)