Skip to content

Commit

Permalink
fix: adding FormerlySerializedAs to networkanimator
Browse files Browse the repository at this point in the history
auto convert from mirror's old names
  • Loading branch information
James-Frowen committed Mar 29, 2021
1 parent afaff28 commit 39f8fbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Mirage/Components/NetworkAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ public class NetworkAnimator : NetworkBehaviour
static readonly ILogger logger = LogFactory.GetLogger(typeof(NetworkAnimator));

[Header("Authority")]
[FormerlySerializedAs("clientAuthority")]
[Tooltip("Set to true if animations come from owner client, set to false if animations always come from server")]
public bool ClientAuthority;

/// <summary>
/// The animator component to synchronize.
/// </summary>
[FormerlySerializedAs("m_Animator")]
[FormerlySerializedAs("animator")]
[Header("Animator")]
[Tooltip("Animator that will have parameters synchronized")]
public Animator Animator;
Expand Down

0 comments on commit 39f8fbd

Please sign in to comment.