@property(AudioSource)
audd1:AudioSource = null
onLoad() {
const audd2 = this.node.getComponent(AudioSource)!
assert(audd2)
this.audd1 = audd2
}
start(){
this.play()
}
play() {
this.audd1.play()
}
pause() {
this.audd1.pause()
}
}
@property(AudioSource)
audd1:AudioSource = null
onLoad() {
const audd2 = this.node.getComponent(AudioSource)!
assert(audd2)
this.audd1 = audd2
}
start(){
this.play()
}
play() {
this.audd1.play()
}
pause() {
this.audd1.pause()
}
}