I'm finding the action Audio Play has now some odd behaviour.
I think there's a problem with this action, the flow doesn't exit the state until the sound is finished playing.
I replaced the new version with the p19 one from an archive and it's working normally.
In public override void OnEnter();
if (audioClip == null)
{
audio.Play();
if (!volume.IsNone)
{
audio.volume = volume.Value;
}
if (WaitForEndOfClip.Value == false)
{
Fsm.Event(finishedEvent);
Finish();
}
return;
}
This bit is missing in the new version and it might be the reason why the action acts weirdly:
if (WaitForEndOfClip.Value == false)
{
Fsm.Event(finishedEvent);
Finish();
}
I'm not using clips but pointing to a GO that has a sound setup with the mixer controlling it.
Logically, the clip (direct ref to an asset in Assets) shouldn't be relevant but it seem to have an effect nonetheless.