Fix: public call of abstract method

This commit is contained in:
Banane_Rotative
2026-01-19 22:40:40 +01:00
parent 83ec7b7b17
commit ebceb624a4
3 changed files with 6 additions and 6 deletions

View File

@@ -39,9 +39,9 @@ public abstract class ILoopableSound : MonoBehaviour
PlayLoopableSound();
}
protected virtual void PlayLoopableSound() { }
public virtual void PlayLoopableSound() { }
protected virtual void StopLoopableSound()
public virtual void StopLoopableSound()
{
DestroySource();
}

View File

@@ -7,7 +7,7 @@ public class LoopablePlaylist : ILoopableSound
[SerializeField] List<AudioClip> playlist;
Coroutine playlistCoroutine = null;
protected override void PlayLoopableSound()
public override void PlayLoopableSound()
{
base.PlayLoopableSound();
@@ -22,7 +22,7 @@ public class LoopablePlaylist : ILoopableSound
source.Play();
}
protected override void StopLoopableSound()
public override void StopLoopableSound()
{
StopCoroutine(playlistCoroutine);
source.Stop();

View File

@@ -4,14 +4,14 @@ public class LoopableSound : ILoopableSound
{
[SerializeField] AudioClip sound;
protected override void PlayLoopableSound()
public override void PlayLoopableSound()
{
base.PlayLoopableSound();
source.clip = sound;
source.Play();
}
protected override void StopLoopableSound()
public override void StopLoopableSound()
{
source.Stop();
base.StopLoopableSound();