Skip to content

Commit a84614e

Browse files
Refactor conditional statement for readability
1 parent 2aa38fe commit a84614e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,8 +1346,7 @@ private unsafe void WriteParameters(ref FastBufferWriter writer)
13461346
BytePacker.WriteValuePacked(writer, (uint)valueInt);
13471347
}
13481348
}
1349-
else
1350-
if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterBool)
1349+
else if (cacheValue.Type == AnimationParamEnumWrapper.AnimatorControllerParameterBool)
13511350
{
13521351
var valueBool = m_Animator.GetBool(hash);
13531352
fixed (void* value = cacheValue.Value)

0 commit comments

Comments
 (0)