Fix: typing record (incompleted)

This commit is contained in:
2019-08-27 23:29:42 +09:00
parent 7b8b53e7ca
commit 4944ba946c
3 changed files with 74 additions and 4 deletions
+4
View File
@@ -85,6 +85,10 @@ RealtimeStageTimer.prototype.sendElapsedTime = function() {
this.onTimeUpdate(timeLeft);
}
RealtimeStageTimer.prototype.getElapsedTime = function() {
return this.elapsedTime;
}
RealtimeStageTimer.prototype.removeTimer = function() {
game.time.events.remove(this.timerEvent);
if(this.timerEvent)
+3 -3
View File
@@ -51,7 +51,7 @@ StringUtil.toKoreanAlphabets = function(text) {
return chars;
};
StringUtil.getUnicodeAlphabetCount = function(text) {
StringUtil.getUnicodeKoreanAlphabetCount = function(text) {
var chars = StringUtil.toKoreanAlphabets(text);
// console.log('char : ' + chars);
@@ -194,9 +194,9 @@ StringUtil.getUnicodeAlphabetCount = function(text) {
var textLen = text.length
for(var i = 0; i < textLen; i++) {
if(StringUtil.isKoreanAlphabet(text[i]))
count += 2;
count += StringUtil.getUnicodeKoreanAlphabetCount(text[i]);
else
count++
count++;
}
return count;