Reverse direction of bool to make mental parsing easier

This commit is contained in:
Dean Herbert 2020-08-08 23:25:52 +09:00
parent 0d1f273603
commit ffb2e56a8d
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class SkinnableSound : SkinReloadableDrawable
/// <remarks>
/// Can serve as an optimisation if it is known ahead-of-time that this behaviour is allowed in a given use case.
/// </remarks>
protected bool SkipPlayWhenZeroVolume => !Looping;
protected bool PlayWhenZeroVolume => Looping;
private readonly AudioContainer<DrawableSample> samplesContainer;
@ -98,7 +98,7 @@ private void play()
{
samplesContainer.ForEach(c =>
{
if (!SkipPlayWhenZeroVolume || c.AggregateVolume.Value > 0)
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
c.Play();
});
}