public void SetTrigger(int hash)
{
AnimationTriggerMessage msg = new AnimationTriggerMessage {
netId = base.netId,
hash = hash
};
if (base.hasAuthority && base.localPlayerAuthority)
{
if (NetworkClient.allClients.Count > 0)
{
NetworkConnection readyConnection = ClientScene.readyConnection;
if (readyConnection != null)
{
readyConnection.Send(0x2a, msg);
}
}
}
else if (base.isServer && !base.localPlayerAuthority)
{
NetworkServer.SendToReady(base.gameObject, 0x2a, msg);
}
}