Fix `Flush` call being run too late in `PoolableSkinnableSample`

This commit is contained in:
Dean Herbert 2023-03-16 15:33:30 +09:00
parent 5378cdff20
commit 297e7d6542
1 changed files with 2 additions and 2 deletions

View File

@ -129,11 +129,11 @@ private void updateSample()
/// </summary> /// </summary>
public void Play() public void Play()
{ {
FlushPendingSkinChanges();
if (Sample == null) if (Sample == null)
return; return;
FlushPendingSkinChanges();
activeChannel = Sample.GetChannel(); activeChannel = Sample.GetChannel();
activeChannel.Looping = Looping; activeChannel.Looping = Looping;
activeChannel.Play(); activeChannel.Play();