Fix: RecordUtil.getRecordValueWithUnit
This commit is contained in:
@@ -7,6 +7,7 @@ function StopWatch() {
|
||||
|
||||
this.timerText = game.add.text(game.world.centerX, 35, "", fontStyle);
|
||||
this.timerText.anchor.set(0.5);
|
||||
this.printTime();
|
||||
|
||||
// var grd = this.label.context.createLinearGradient(0, 0, 0, StopWatch.FONT_HEIGHT_PX);
|
||||
// grd.addColorStop(0, '#8ED6FF');
|
||||
@@ -57,8 +58,9 @@ StopWatch.prototype.updateTimer = function() {
|
||||
}
|
||||
|
||||
StopWatch.prototype.printTime = function() {
|
||||
var timeText = this.ellpasedTime.toFixed(2);
|
||||
this.timerText.text = timeText + "초";
|
||||
this.timerText.text = RecordUtil.getRecordValueWithUnit(
|
||||
this.ellpasedTime, sessionStorageManager.getPlayingAppID()
|
||||
);
|
||||
}
|
||||
|
||||
StopWatch.prototype.removeTimer = function() {
|
||||
|
||||
Reference in New Issue
Block a user