123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import { _decorator, Component, Label, Node } from 'cc';
- import { server_han_zi_zhao_bu_tong_data_item, server_mei_nv_zhao_xi_jie_data_item, server_shuang_tu_zhao_bu_tong_data_item } from '../data/server_play_list_data';
- import { Util } from '../framework/util';
- import { gameManager } from '../gameManager';
- const { ccclass, property } = _decorator;
- @ccclass('win')
- export class win extends Component {
- @property(Node) btn_back:Node;
- @property(Node) btn_ordinary:Node;
- @property(Node) btn_double:Node;
- @property(Node) lab_reward_number:Node;
- private m_ordinary_call:any = null;
- private m_double_call:any = null;
- start() {
- let self = this;
- this.btn_back.on(Node.EventType.TOUCH_START,()=>{
- self.close();
- },this);
- this.btn_ordinary.on(Node.EventType.TOUCH_START,()=>{
- if(this.m_ordinary_call!=null){
- this.m_ordinary_call()
- }
- self.close();
- },this);
- this.btn_double.on(Node.EventType.TOUCH_START,()=>{
- if(this.m_double_call!=null){
- this.m_double_call()
- }
- self.close();
- },this);
- }
- close(){
- this.node.removeFromParent();
- }
- //双图找不同
- public showZhaoBuTongView(reward:number,data:server_shuang_tu_zhao_bu_tong_data_item,ordinary_call,double_call){
- this.m_double_call = double_call;
- this.m_ordinary_call = ordinary_call;
- this.lab_reward_number.getComponent(Label).string = "+ " +reward+"";
- }
- //汉字找不同
- public showHanZiView(reward:number,data:server_han_zi_zhao_bu_tong_data_item,ordinary_call,double_call){
- this.m_double_call = double_call;
- this.m_ordinary_call = ordinary_call;
- this.lab_reward_number.getComponent(Label).string = "+ " +reward+"";
- }
- //美女找不同
- public showMeiNvView(reward:number,data:server_mei_nv_zhao_xi_jie_data_item,ordinary_call,double_call){
- this.m_double_call = double_call;
- this.m_ordinary_call = ordinary_call;
- this.lab_reward_number.getComponent(Label).string = "+ " +reward+"";
- }
- }
|