mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkAnimator: OnDeserialize more obvious syntax
This commit is contained in:
parent
35d1387c7a
commit
3f5f9bd9eb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user