LevelHomeBottom.js 416 B

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