Skip to content

Commit

Permalink
fix: Eliminate NetworkAnimator SetTrigger double firing on Host (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget committed Apr 16, 2020
1 parent 654084b commit e5b728f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirror/Components/NetworkAnimator.cs
Expand Up @@ -519,12 +519,16 @@ void RpcOnAnimationParametersClientMessage(byte[] parameters)
[ClientRpc]
void RpcOnAnimationTriggerClientMessage(int hash)
{
if (isServer) return;

HandleAnimTriggerMsg(hash);
}

[ClientRpc]
void RpcOnAnimationResetTriggerClientMessage(int hash)
{
if (isServer) return;

HandleAnimResetTriggerMsg(hash);
}

Expand Down

0 comments on commit e5b728f

Please sign in to comment.