|
@@ -75,10 +75,9 @@ export class audioManager extends Component {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let loop:boolean = false
|
|
let loop:boolean = false
|
|
- let play = (node)=>{
|
|
|
|
|
|
+ let play = (node:Node)=>{
|
|
node.getComponent(AudioSource).stop()
|
|
node.getComponent(AudioSource).stop()
|
|
- node.getComponent(AudioSource).play()
|
|
|
|
-
|
|
|
|
|
|
+ node.getComponent(AudioSource).playOneShot(node.getComponent(AudioSource).clip,1)
|
|
// node.getComponent(AudioSource).playOneShot(node.getComponent(AudioSource).clip,soundVolume?soundVolume:this.soundVolume)
|
|
// node.getComponent(AudioSource).playOneShot(node.getComponent(AudioSource).clip,soundVolume?soundVolume:this.soundVolume)
|
|
}
|
|
}
|
|
if(this.audios_map.get(path)){
|
|
if(this.audios_map.get(path)){
|