
                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/__qc_index__.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}
require('./assets/Script/HelloWord');
require('./assets/Script/SecScene');

                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//------QC-SOURCE-SPLIT------

                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/Script/HelloWord.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '97a8duarFZD1oztdelI4fTh', 'HelloWord');
// Script/HelloWord.ts

"use strict";
// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var HelloWord = /** @class */ (function (_super) {
    __extends(HelloWord, _super);
    function HelloWord() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.label = null;
        _this.text = 'hello';
        return _this;
        // update (dt) {}
    }
    // LIFE-CYCLE CALLBACKS:
    // onLoad () {}
    HelloWord.prototype.start = function () {
        //     cc.assetManager.pipeline.insert((task, done)=>{
        //         for (var i = 0; i < task.input.length; i++) {
        //             task.input[i].content = null;
        //         }
        //         task.output = task.input;
        //         done;
        //     }, 1);
        //    cc.resources.load("HelloWorld",null,null,(err,asset:cc.SpriteFrame)=>{
        var _this = this;
        //    })
        // cc.assetManager.loadAny( {path: 'HelloWorld', bundle: 'resources'},(finished: number, total: number, item: cc.AssetManager.RequestItem) =>{
        //     cc.log(finished,total,item)
        // },(err,res)=>{
        // })
        cc.resources.load("HelloWorld", cc.SpriteFrame, null, function (err, asset) {
            cc.log(asset);
            var aa = new cc.Node();
            var spr = aa.addComponent(cc.Sprite);
            spr.spriteFrame = asset;
            console.log("aa.refCount:", asset.refCount);
            asset.addRef();
            _this.node.addChild(aa);
            aa.destroy();
            _this.scheduleOnce(function () {
                console.log("aa.refCount:", asset.refCount);
                cc.director.loadScene("secScene");
            });
        });
        // cc.assetManager.loadBundle('kefu', function (err, bundle) {
        //     if (err) {
        //         return console.error(err);
        //     }
        //     let bundleA = cc.assetManager.getBundle('kefu');
        //     bundleA.loadDir("111",cc.SpriteFrame,(finished, total, item)=>{
        //         console.log(finished,total,item)
        //     },(err,res)=>{
        //         var bundle = cc.assetManager.getBundle('kefu');
        //         bundle.releaseAll();
        //         cc.assetManager.removeBundle(bundle);
        //     })
        //     console.log(bundleA);
        // });
        // // cc.director.loadScene()
        // // cc.assetManager.getBundle('st');
        // var bundle = cc.assetManager.getBundle('kefu');
        // bundle.releaseAll();
        // cc.assetManager.removeBundle(bundle);
    };
    __decorate([
        property(cc.Label)
    ], HelloWord.prototype, "label", void 0);
    __decorate([
        property
    ], HelloWord.prototype, "text", void 0);
    HelloWord = __decorate([
        ccclass
    ], HelloWord);
    return HelloWord;
}(cc.Component));
exports.default = HelloWord;

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=utf-8;base64, 
//------QC-SOURCE-SPLIT------

                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/Script/SecScene.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, 'd0318Q0zwtKOrLu16QvVEbw', 'SecScene');
// Script/SecScene.ts

"use strict";
// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var SecScene = /** @class */ (function (_super) {
    __extends(SecScene, _super);
    function SecScene() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.label = null;
        _this.text = 'hello';
        return _this;
        // update (dt) {}
    }
    // LIFE-CYCLE CALLBACKS:
    // onLoad () {}
    SecScene.prototype.start = function () {
        var aa = cc.resources.get("HelloWorld", cc.SpriteFrame);
        console.log("aa.refCount:", aa.refCount);
        var bb = 0;
        this.scheduleOnce(function () {
            var dd = cc.resources.get("HelloWorld", cc.SpriteFrame);
            console.log("aa.refCount:", aa.refCount);
            var bb = 0;
        }, 2);
    };
    __decorate([
        property(cc.Label)
    ], SecScene.prototype, "label", void 0);
    __decorate([
        property
    ], SecScene.prototype, "text", void 0);
    SecScene = __decorate([
        ccclass
    ], SecScene);
    return SecScene;
}(cc.Component));
exports.default = SecScene;

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=utf-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