Commit 8b31d1a6 authored by liujiaxin's avatar liujiaxin

feat: use bundle load new skin

parent 307de46b
......@@ -490,7 +490,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
let icon = pg.view.find(item, "bg_food/icon");
let discount = pg.view.find(item, "bg_food/discount");
let btn_buy = pg.view.find(item, "bg_food/btn_buy");
if(([ITEM_TYPE.HOUSE, ITEM_TYPE.CLOTHES].includes(data.type)) && (data as HouseItem).num > 0) {
let own = pg.view.find(item, "bg_food/own");
pg.view.visible(own, true);
......@@ -619,7 +618,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
updateChickenItem(item, data: Item) {
// console.log(data);
item.active = true;
let growth = pg.view.find(item, "growth");
let name = pg.view.find(item, "name");
......
......@@ -26,7 +26,7 @@ class Shop {
return this._list.filter(li => {
return li.type == type && ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id);
}).map(li => {
if (li.type == ITEM_TYPE.FOOD) {
if (li.type == ITEM_TYPE.HOUSE) {
return {...li, num: (house.has(li.id) ? 1 : 0)}
}
if (li.type == ITEM_TYPE.CLOTHES) {
......
......@@ -353,7 +353,7 @@ let pg = {
// if (err && !texture) return resolve(pg.logger.w('loading loadNetImg warn-> ' + texture));
// resolve(texture);
// });
console.log('loadNetImg', url)
// console.log('loadNetImg', url)
if (url && typeof url == 'string') {
if (url.startsWith('http')) {
cc.assetManager.loadRemote(url, (err, texture) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment