mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(NetworkAnimator): Default animatorSpeed to 1 (#3801)
This commit is contained in:
parent
278324c1f1
commit
a96fe27037
@ -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