mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(NetworkAnimator): Default animatorSpeed to 1 (#3801)
This commit is contained in:
parent
6539bbc136
commit
b5f5e25aab
@ -31,11 +31,12 @@ public class NetworkAnimator : NetworkBehaviour
|
||||
public Animator animator;
|
||||
|
||||
/// <summary>
|
||||
/// Syncs animator.speed
|
||||
/// Syncs animator.speed.
|
||||
/// Default to 1 because Animator.speed defaults to 1.
|
||||
/// </summary>
|
||||
[SyncVar(hook = nameof(OnAnimatorSpeedChanged))]
|
||||
float animatorSpeed;
|
||||
float previousSpeed;
|
||||
float animatorSpeed = 1f;
|
||||
float previousSpeed = 1f;
|
||||
|
||||
// Note: not an object[] array because otherwise initialization is real annoying
|
||||
int[] lastIntParameters;
|
||||
|
Loading…
Reference in New Issue
Block a user