1234567891011121314151617181920212223242526272829 |
- const ThemeManager = require("../utils/ThemeManger");
- cc.Class({
- extends: cc.Component,
- properties: {
-
- },
- // LIFE-CYCLE CALLBACKS:
- init(cityId) {
- this.cityId = cityId;
- let buildSprite = this.node.getComponent(cc.Sprite)
- ThemeManager.setBottomBuildSpriteFrame(cityId, buildSprite);
- },
- onLoad () {
-
-
- },
- start () {
- },
- // update (dt) {},
- });
|