import NumberToImage from "./NumberToImage"; const { ccclass, property } = cc._decorator; @ccclass export default class NewClass extends cc.Component { //商店界面 @property(cc.Node) heath: cc.Node = null; // onLoad () {} //金币数量 @property(cc.Node) coin: cc.Node = null; start() { this.openShop(); } //打开商店界面 openShop() { NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 30, 15, "coin_", this.coin, true); } //关闭商店界面 closeShop() { //销毁预制体 this.heath.destroy(); } // update (dt) {} }