42c85499-9646-4188-ae28-8b03e19af186.js 1021 Bytes
"use strict";
cc._RF.push(module, '42c85SZlkZBiK4oiwPhmvGG', 'GameDotMgr');
// script/game/GameDotMgr.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const AVG_1 = require("../avg/AVG");
const GameModelManager_1 = require("./model/GameModelManager");
let GameDotMgr = /** @class */ (() => {
    class GameDotMgr {
        static getInstance() {
            return GameDotMgr._instance;
        }
        async dotClickUI(uiName) {
            let recordKey = "click_ui_count_" + uiName + "_t_" + GameModelManager_1.GameModelManager.getCurDayStr();
            let clickCount = AVG_1.GameRecord.globalVariables[recordKey];
            if (undefined === clickCount) {
                clickCount = 0;
            }
            clickCount += 1;
            AVG_1.GameRecord.globalVariables[recordKey] = clickCount;
            AVG_1.GameRecord.saveRecord();
        }
    }
    GameDotMgr._instance = new GameDotMgr();
    return GameDotMgr;
})();
exports.default = GameDotMgr;

cc._RF.pop();