mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
refactor: use save parameter name as overriden method
This commit is contained in:
parent
addbd91fbd
commit
ae3860f51b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user