"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MUtils;
(function (MUtils) {
    function setButtonImage(button, texture) {
        for (var _i = 0, _a = button.$children; _i < _a.length; _i++) {
            var i = _a[_i];
            if (i instanceof eui.Image) {
                i.source = texture;
                return;
            }
        }
        console.error("can not get image in the button");
    }
    MUtils.setButtonImage = setButtonImage;
})(MUtils = exports.MUtils || (exports.MUtils = {}));
//# sourceMappingURL=MUtils.js.map