NetworkAnimator: OnDeserialize more obvious syntax

This commit is contained in:
mischa 2024-01-02 13:32:17 +01:00
parent 35d1387c7a
commit 3f5f9bd9eb

View File

@ -395,7 +395,8 @@ public override void OnDeserialize(NetworkReader reader, bool initialState)
{
int stateHash = reader.ReadInt();
float normalizedTime = reader.ReadFloat();
animator.SetLayerWeight(i, reader.ReadFloat());
float weight = reader.ReadFloat();
animator.SetLayerWeight(i, weight);
animator.Play(stateHash, i, normalizedTime);
}