This commit is contained in:
2024-11-22 17:00:15 +08:00
parent a67800394f
commit 5a268cc8f2

View File

@@ -42,7 +42,7 @@ export class VictoryComp extends CCComp {
let item2 =Items[reward2[1]] let item2 =Items[reward2[1]]
let r1_num=0 let r1_num=0
let r2_num=0 let r2_num=0
console.log("getReward:",reward,item1,item2) console.log("getReward:",item1,item2)
this.node.getChildByName("Node").getChildByName("item2").getChildByName("num").getComponent(Label).string=item1.r_num.toString() this.node.getChildByName("Node").getChildByName("item2").getChildByName("num").getComponent(Label).string=item1.r_num.toString()
this.node.getChildByName("Node").getChildByName("item2").getChildByName("name").getComponent(Label).string=item1.name.toString() this.node.getChildByName("Node").getChildByName("item2").getChildByName("name").getComponent(Label).string=item1.name.toString()
this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=item2.r_num.toString() this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=item2.r_num.toString()