Fix: RecordUtil.getRecordValueWithUnit
This commit is contained in:
@@ -181,7 +181,7 @@ Missile.prototype.speedUp = function() {
|
||||
|
||||
Missile.DEFAULT_SPEED_DOT_PER_SEC = 150;
|
||||
|
||||
Missile.START_Radius_PX = 600;
|
||||
Missile.START_Radius_PX = 640;
|
||||
Missile.START_RANDOM_Radius_PERCENT = 40;
|
||||
|
||||
Missile.SPACESHIP_RANDOM_AREA_MARGIN = 100;
|
||||
@@ -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