开始商店 脚本和ui
This commit is contained in:
@@ -363,11 +363,11 @@ export class CardComp extends CCComp {
|
||||
this.reset_card()
|
||||
}
|
||||
cost_gold_check(){
|
||||
if(smc.vmdata.data.gold< this.cost_gold){
|
||||
if(smc.data.gold< this.cost_gold){
|
||||
oops.gui.toast("[cardcomp]:金币不足", false);
|
||||
return false
|
||||
}
|
||||
smc.vmdata.data.gold-=this.cost_gold
|
||||
smc.data.gold-=this.cost_gold
|
||||
return true
|
||||
}
|
||||
reset() {
|
||||
|
||||
Reference in New Issue
Block a user