Sound
🛠 Cómo crear un objeto Sound
Soundnew Sound("Jump").Play();new Sound(SFX.Jump).Play();Sound jumpSound = new Sound("Jump").SetVolume(0.8f).SetLoop(true);
jumpSound.Play(); 📝 Ejemplo Avanzado
Sound laser = new Sound(SFX.laser)
.SetVolume(0.5f)
.SetRandomPitch()
.SetHeardDistance(5, 30)
.SetOutput(Output.SFX)
.OnComplete(() => Debug.Log("Laser recargado"))
.Play(); Last updated