mirror of
https://github.com/appen-isen/jeu-sans-image.git
synced 2026-03-18 21:50:42 +01:00
Fix: public call of abstract method
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user