mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
锻造升级
This commit is contained in:
@@ -3,6 +3,7 @@ import { _decorator, Component, Node } from 'cc';
|
||||
import ResourceData, { ResourceEvent, ResourceType } from '../../../data/ResourceData';
|
||||
import { Enum } from 'cc';
|
||||
import { app } from '../../../App';
|
||||
import NumberTools from '../../../tools/NumberTools';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('PlayerResourceShow')
|
||||
@@ -34,7 +35,7 @@ export class PlayerResourceShow extends Component {
|
||||
onUpdateView(){
|
||||
|
||||
//更新资源数量
|
||||
this.show.string = `${ResourceData.getIns().getValue(this.type)}`;
|
||||
this.show.string = `${NumberTools.NumberStr(ResourceData.getIns().getValue(this.type))}`;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -60,7 +60,7 @@ export class MainView extends JNGLayerBase {
|
||||
|
||||
//更新UI界面
|
||||
onUpdateView(){
|
||||
this.playerNameLabel.string = `${PlayerData.getIns().getInfo().playerId}`;
|
||||
this.playerNameLabel.string = `${PlayerData.getIns().getInfo().playerName}`;
|
||||
this.onUpdateOnHookInfo();
|
||||
this.onUpdateOnHook();
|
||||
}
|
||||
|
Reference in New Issue
Block a user