refactor: use save parameter name as overriden method

This commit is contained in:
Paul Pacheco 2020-01-01 20:26:59 -06:00
parent addbd91fbd
commit ae3860f51b

View File

@ -299,11 +299,11 @@ void ReadParameters(NetworkReader reader)
/// Custom Serialization /// Custom Serialization
/// </summary> /// </summary>
/// <param name="writer"></param> /// <param name="writer"></param>
/// <param name="forceAll"></param> /// <param name="initialState"></param>
/// <returns></returns> /// <returns></returns>
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++) for (int i = 0; i < animator.layerCount; i++)
{ {
@ -320,7 +320,7 @@ public override bool OnSerialize(NetworkWriter writer, bool forceAll)
writer.WriteSingle(st.normalizedTime); writer.WriteSingle(st.normalizedTime);
} }
} }
WriteParameters(writer, forceAll); WriteParameters(writer, initialState);
return true; return true;
} }
return false; return false;