feat(游戏数据): 添加金币字段并调整英雄属性和UI
- 在 SingletonModuleComp 中添加 gold 字段作为玩家金币数据 - 调整 HeroConf 配置:降低英雄属性上限并将购买成本设为0 - 修改 HInfoComp 中购买英雄的金币检查逻辑,使用 smc.data.gold 替代 smc.vmdata.gold - 更新 role_controller.prefab 的UI元素位置、尺寸和精灵资源
This commit is contained in:
@@ -52,6 +52,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
score:0,
|
||||
mission:1,
|
||||
diamond:100, //商店购买 及 双倍奖励资源
|
||||
gold:1000,
|
||||
task:0,
|
||||
noStop:false,
|
||||
showInfo:true,
|
||||
|
||||
Reference in New Issue
Block a user