mirror of
https://github.com/appen-isen/jeu-sans-image.git
synced 2026-03-18 21:50:42 +01:00
20 lines
365 B
C#
20 lines
365 B
C#
using UnityEngine;
|
|
|
|
public class LoopableSound : ILoopableSound
|
|
{
|
|
[SerializeField] AudioClip sound;
|
|
|
|
public override void PlayLoopableSound()
|
|
{
|
|
base.PlayLoopableSound();
|
|
source.clip = sound;
|
|
source.Play();
|
|
}
|
|
|
|
public override void StopLoopableSound()
|
|
{
|
|
source.Stop();
|
|
base.StopLoopableSound();
|
|
}
|
|
}
|