Skip to content

Commit

Permalink
feat: lock send layer when recieving an animation from someone else
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaNeverUsed committed Jul 3, 2024
1 parent 19cb92a commit e8c9d51
Show file tree
Hide file tree
Showing 4 changed files with 29,119 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,11 @@ private void SetCommonAudioSettings(AacVRCFlEditAnimatorPlayAudio audio)
private void GenerateSendLayer()
{
var readyState = _sendLayer.NewState("Ready");
var lockState = _sendLayer.NewState("Lock");
var exitState = _sendLayer.NewState("Done");

readyState.TransitionsFromEntry();
readyState.TransitionsTo(lockState).When(_paramRecvBits.IsAnyTrue());
lockState.TransitionsTo(readyState).When(_paramRecvBits.AreFalse());
exitState.Exits().Automatically().WithTransitionDurationSeconds(0.2f);

for (int i = 1; i < _animations.Count + 1; i++)
Expand Down
Loading

0 comments on commit e8c9d51

Please sign in to comment.