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

Object.defineProperty(exports, "__esModule", { value: true });
/**
 * copyright (c) 厦门风领科技有限公司
 * http://www.fenglinghudong.com/
 *
 * 组件功能
 * 徐斌杰
 * 2018-00-00
 */
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var RScene = /** @class */ (function (_super) {
    __extends(RScene, _super);
    function RScene() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        /**
         *
         */
        _this.display = null;
        return _this;
        // update (dt) {},
    }
    RScene.prototype.onLoad = function () {
    };
    RScene.prototype.start = function () {
        var _this = this;
        if (cc.sys.platform != cc.sys.WECHAT_GAME) {
            return;
        }
        wx.onMessage(function (data) {
            switch (data.message) {
                case 'Show':
                    _this._show();
                    break;
                case 'Hide':
                    _this._hide();
                    break;
            }
        });
    };
    RScene.prototype._show = function () {
        // let moveTo = cc.moveTo(0.5, 0, 73);
        // this.display.runAction(moveTo);
        this.display.active = true;
    };
    RScene.prototype._hide = function () {
        // let moveTo = cc.moveTo(0.5, 0, 1000);
        // this.display.runAction(moveTo);
        this.display.active = false;
    };
    __decorate([
        property({
            type: cc.Node,
            tooltip: ''
        })
    ], RScene.prototype, "display", void 0);
    RScene = __decorate([
        ccclass
    ], RScene);
    return RScene;
}(cc.Component));
exports.default = RScene;

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