mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10: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;
|
public Animator animator;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Syncs animator.speed
|
/// Syncs animator.speed.
|
||||||
|
/// Default to 1 because Animator.speed defaults to 1.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SyncVar(hook = nameof(OnAnimatorSpeedChanged))]
|
[SyncVar(hook = nameof(OnAnimatorSpeedChanged))]
|
||||||
float animatorSpeed;
|
float animatorSpeed = 1f;
|
||||||
float previousSpeed;
|
float previousSpeed = 1f;
|
||||||
|
|
||||||
// Note: not an object[] array because otherwise initialization is real annoying
|
// Note: not an object[] array because otherwise initialization is real annoying
|
||||||
int[] lastIntParameters;
|
int[] lastIntParameters;
|
||||||
|
Loading…
Reference in New Issue
Block a user