|
@@ -54,6 +54,7 @@ export class audioManager extends Component {
|
|
}
|
|
}
|
|
public playBGM(clip_node:Node){
|
|
public playBGM(clip_node:Node){
|
|
this.stopAllBGM()
|
|
this.stopAllBGM()
|
|
|
|
+ clip_node.getComponent(AudioSource).loop = true
|
|
clip_node.getComponent(AudioSource).play()
|
|
clip_node.getComponent(AudioSource).play()
|
|
}
|
|
}
|
|
public playMusic(path:string){
|
|
public playMusic(path:string){
|