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

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {
        _movimentacao: cc.Component
    },

    // use this for initialization
    onLoad: function onLoad() {
        cc.director.getCollisionManager().enabled = true;
        this._movimentacao = this.getComponent("Movimentacao");
    },

    onCollisionStay: function onCollisionStay(outro) {
        if (outro.node.group == "cenario") {

            this._movimentacao.andarPraTras();
        }
    }

});

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