|
@@ -1,4 +1,4 @@
|
|
|
-import { _decorator, Component, instantiate, Label, Node, Prefab, SpriteFrame, UITransform, Vec3 } from 'cc';
|
|
|
+import { _decorator, Component, instantiate, Label, log, Node, Prefab, SpriteFrame, UITransform, Vec3 } from 'cc';
|
|
|
import { base_view } from '../base_view';
|
|
|
import { tools } from '../../tools';
|
|
|
import { gameManager } from '../../gameManager';
|
|
@@ -25,6 +25,12 @@ export class view_game_play_zhao_bu_tong extends base_view {
|
|
|
this.categoryid = config.PLAY_TYPE.ZHAO_BU_TONG;
|
|
|
let self = this;
|
|
|
this.isShowWin = false;
|
|
|
+
|
|
|
+ let list = this.m_data.reward.split(",");
|
|
|
+ let start = parseInt(list[0]);
|
|
|
+ let end = parseInt(list[1]);
|
|
|
+ this.reward = Util.getRandomInt(start,end);
|
|
|
+
|
|
|
let call_back = ()=>{
|
|
|
if(count>=this.m_data.img_list.length+1){
|
|
|
gameManager.loadPlayMusicByCategoryId(this.categoryid,()=>{
|
|
@@ -58,6 +64,7 @@ export class view_game_play_zhao_bu_tong extends base_view {
|
|
|
}
|
|
|
onGridItemClick(_diff_child_item:diff_child_item){
|
|
|
if(_diff_child_item.isRight()){
|
|
|
+ gameManager.playRightSoundByCategoryId(this.categoryid);
|
|
|
_diff_child_item.Finish()
|
|
|
_diff_child_item.show()
|
|
|
this.hideGuid()
|
|
@@ -78,6 +85,7 @@ export class view_game_play_zhao_bu_tong extends base_view {
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
+ gameManager.playErrSoundByCategoryId(this.categoryid);;
|
|
|
_diff_child_item.showErrStatus()
|
|
|
this.error_sub_time()
|
|
|
this.showErrLab(_diff_child_item.node)
|