mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
fixed animtriggerevent
This commit is contained in:
parent
615fddf7e1
commit
abc73b8629
@ -21,11 +21,11 @@ namespace QSB.Animation.Player.Events
|
|||||||
|
|
||||||
public override void OnReceiveRemote(bool server, AnimationTriggerMessage message)
|
public override void OnReceiveRemote(bool server, AnimationTriggerMessage message)
|
||||||
{
|
{
|
||||||
if (!QSBCore.WorldObjectsReady)
|
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
|
||||||
|
if (!QSBCore.WorldObjectsReady || animationSync != null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
|
|
||||||
animationSync.VisibleAnimator.SetTrigger(message.Name);
|
animationSync.VisibleAnimator.SetTrigger(message.Name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user