(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/main.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'e1780G3z6hCy5h/YfP+9lq+', 'main', __filename);
// main.js

'use strict';

// Learn cc.Class:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        cell: {
            // ATTRIBUTES:
            default: null, // The default value will be used only when the component attaching
            // to a node for the first time
            type: cc.Prefab // optional, default is typeof default
        },
        node10: {
            default: null,
            type: cc.Node
        },
        node110: {
            default: null,
            type: cc.Node
        },

        node1100: {
            default: null,
            type: cc.Node
        },
        label10: {
            default: null,
            type: cc.Node
        },
        label110: {
            default: null,
            type: cc.Node
        },

        label110img: {
            default: null,
            type: cc.Node
        },

        str: {
            default: null,
            type: cc.Label
        },

        label1in: {
            default: null,
            type: cc.Node
        }
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad: function onLoad() {
        // let start = Date.now();
        // console.time('init');
        // for(let i = 0; i < 122; i++) {
        //     var cell = cc.instantiate(this.cell);
        //     // console.timeEnd('init');
        //     // let init = Date.now();
        //     cell.x = 0; 
        //     cell.y = i * 20;
        //     this.node.addChild(cell);
        // }
        // this.node.addChild(cell);
        // let end = Date.now();
        // console.log('init:', init - start);
        // console.log('end:', end - init);
    },
    start: function start() {},
    show10: function show10() {
        var start = Date.now();
        this.node10.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    show110: function show110() {
        var start = Date.now();
        this.node110.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    show1100: function show1100() {
        var start = Date.now();
        this.node1100.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    showlabel10: function showlabel10() {
        var start = Date.now();
        this.label10.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    sshowlabel110: function sshowlabel110() {
        var start = Date.now();
        this.label110.active = true;
        var end = Date.now();
        this.str.string = end - start;
        console.log('sshowlabel110');
    },
    showlabel110img: function showlabel110img() {
        var start = Date.now();
        this.label110img.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    showlabel1in: function showlabel1in() {
        var start = Date.now();
        this.label1in.active = true;
        var end = Date.now();
        this.str.string = end - start;
    },
    reset: function reset() {
        this.node10.active = false;
        this.node110.active = false;
        this.node1100.active = false;
        this.label10.active = false;
        this.label110.active = false;
        this.label110img.active = false;
        this.label1in.active = false;
    }

    // update (dt) {},

});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=main.js.map
        