|
@@ -1,4 +1,5 @@
|
|
|
import { _decorator, Component, Label, Node } from 'cc';
|
|
|
+import { gameManager } from '../gameManager';
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@ccclass('unlock_play_dialog')
|
|
@@ -14,11 +15,13 @@ export class unlock_play_dialog extends Component {
|
|
|
this.setupCoinNumber(coin_number)
|
|
|
this.setupLookVideo(look_video_string)
|
|
|
this.btn_coin.on(Node.EventType.TOUCH_END, ()=> {
|
|
|
+ gameManager.playBtnSound()
|
|
|
if(coin_callback != null) {
|
|
|
coin_callback(this)
|
|
|
}
|
|
|
},this)
|
|
|
this.btn_look_video.on(Node.EventType.TOUCH_END, ()=> {
|
|
|
+ gameManager.playBtnSound()
|
|
|
if(look_video_callback != null) {
|
|
|
look_video_callback(this)
|
|
|
}
|