(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/js/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, '3a8fbqYNVBAGJ0U9PqlSEjo', 'main', __filename);
// js/main.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {
        m_bullet: cc.Prefab,
        m_button: cc.Node
    },

    ctor: function ctor() {
        this.array = new Array();
        this.bulletList = new Array();
    },
    start: function start() {},


    /**
    * 创建子弹预制体
    */
    createBulletNode: function createBulletNode() {
        var enemy = null;
        enemy = cc.instantiate(this.m_bullet);
        enemy.parent = this.node;
        return enemy;
    },
    shotBullet: function shotBullet() {
        var bulletNode = this.createBulletNode();
        var beginPos = this.m_button.getPosition(); //起始位置
        bulletNode.setPosition(beginPos);
        //接下来的逻辑在bullet.js里
    }
}

// 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
        