mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +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)
|
||||
{
|
||||
if (!QSBCore.WorldObjectsReady)
|
||||
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
|
||||
if (!QSBCore.WorldObjectsReady || animationSync != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
|
||||
animationSync.VisibleAnimator.SetTrigger(message.Name);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user