Commit 1fa0adc5 authored by haiyoucuv's avatar haiyoucuv

init

parent 9a615d73
...@@ -33,6 +33,8 @@ export default class GameResultPanel extends Panel { ...@@ -33,6 +33,8 @@ export default class GameResultPanel extends Panel {
this.totalLength.string = `${score}`; this.totalLength.string = `${score}`;
awardList.forEach(({ count, prizeName, prizeImage }) => { awardList.forEach(({ count, prizeName, prizeImage }) => {
if (count <= 0) return;
const node = instantiate(this.prizePrefab); const node = instantiate(this.prizePrefab);
this.prizeNode.addChild(node); this.prizeNode.addChild(node);
......
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