掉落加双倍处理 基本完成
This commit is contained in:
@@ -73,14 +73,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
level:1,//关卡等级
|
||||
max_mission:4,//最大关卡
|
||||
},
|
||||
reward:{
|
||||
score:0,
|
||||
mission:0,
|
||||
gold:0, //升级主要资源
|
||||
diamond:0, //商店购买 及 双倍奖励资源
|
||||
meat:0,
|
||||
exp:0, //升级经验
|
||||
}
|
||||
};
|
||||
vmAdd() {
|
||||
VM.add(this.vmdata, "data");
|
||||
@@ -222,7 +214,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
this.gameDataSyncManager.spendGameProperty("diamond",diamond)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 消耗游戏数据属性(统一接口)
|
||||
* - 支持单个字段:spendGameProperty('gold', 10)
|
||||
|
||||
Reference in New Issue
Block a user