From ae3860f51b4bc42ea15911296b032ac7e5acda43 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 1 Jan 2020 20:26:59 -0600 Subject: [PATCH] refactor: use save parameter name as overriden method --- Assets/Mirror/Components/NetworkAnimator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Components/NetworkAnimator.cs b/Assets/Mirror/Components/NetworkAnimator.cs index 4f93d376e..da30206a1 100644 --- a/Assets/Mirror/Components/NetworkAnimator.cs +++ b/Assets/Mirror/Components/NetworkAnimator.cs @@ -299,11 +299,11 @@ void ReadParameters(NetworkReader reader) /// Custom Serialization /// /// - /// + /// /// - public override bool OnSerialize(NetworkWriter writer, bool forceAll) + public override bool OnSerialize(NetworkWriter writer, bool initialState) { - if (forceAll) + if (initialState) { for (int i = 0; i < animator.layerCount; i++) { @@ -320,7 +320,7 @@ public override bool OnSerialize(NetworkWriter writer, bool forceAll) writer.WriteSingle(st.normalizedTime); } } - WriteParameters(writer, forceAll); + WriteParameters(writer, initialState); return true; } return false;