LevelHomeBottom.js 438 B

1234567891011121314151617181920212223242526272829
  1. const ThemeManager = require("../utils/ThemeManger");
  2. cc.Class({
  3. extends: cc.Component,
  4. properties: {
  5. },
  6. // LIFE-CYCLE CALLBACKS:
  7. init(cityId) {
  8. this.cityId = cityId;
  9. let buildSprite = this.node.getComponent(cc.Sprite)
  10. ThemeManager.setBottomBuildSpriteFrame(cityId, buildSprite);
  11. },
  12. onLoad () {
  13. },
  14. start () {
  15. },
  16. // update (dt) {},
  17. });