Skip to content

Commit

Permalink
chore: hopefully fix recv layer some times being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaNeverUsed committed Jun 29, 2024
1 parent 02c2abf commit b8aef49
Show file tree
Hide file tree
Showing 3 changed files with 16,269 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ private void GenerateSendLayer()
private void GenerateReceiveLayer()
{
var readyState = _recvLayer.NewState("Ready");
var bufferState = _recvLayer.NewState("Buffer");
var danceState = _recvLayer.NewSubStateMachine("Dance");
var doneState = _recvLayer.NewState("Done");

Expand All @@ -533,7 +534,9 @@ private void GenerateReceiveLayer()

// Transition to dance blend tree whenever an animation is triggered
readyState.TransitionsFromEntry();
readyState.TransitionsTo(danceState).When(_paramRecvBits.IsAnyTrue());
readyState.TransitionsTo(bufferState).When(_paramRecvBits.IsAnyTrue());
bufferState.TransitionsTo(danceState).When(_paramRecvBits.IsAnyTrue());
bufferState.TransitionsTo(readyState).Automatically();
danceState.TransitionsTo(doneState);

var animationStates = new List<AacFlState>();
Expand Down
Loading

0 comments on commit b8aef49

Please sign in to comment.