Загрузка данных


export class Button {
    constructor(scene, x, y, {
        image,
        label                           = '',
        nameButton              = null,
        funcConfig                = {},
        textConfig                 = {},
        hoverConfig              = {},

    } = {}) {

        if (label) {
            const {
                fontFamily          = 'Roboto Slab',
                fontSize              = '28px',
                fill                       = '#ff8c00',
                origin                  = 0.5,
                textX: finalX       = x,
                textY: finalY       = y
            } = textConfig;