// Update is called once per frame void Update() { converter.language = defaultLanguage; secondsToTimeInput = Time.time; stringToValueOutput.text = converter.StringToValue(stringValueInput).ToString(); valuetoStringIntOutput.text = converter.ValueToString(intValueInput); valueToStringFloatOutput.text = converter.ValueToString(floatValueInput); TwelveHourClockOutput.text = converter.HoursToClock(hourInput, 12); TwentyFourHourClockOutput.text = converter.HoursToClock(hourInput, 24); gameTimeOutput.text = converter.secondsToTime(secondsToTimeInput); testStringOutput.text = converter.GetMessage("test.i18n.testString", Random.Range(100, 500).ToString()); valuesHeader.text = converter.GetMessage("test.i18n.values"); timeHeader.text = converter.GetMessage("test.i18n.time"); stringToValueTitle.text = converter.GetMessage("test.i18n.stringToValue"); valuetoStringIntTitle.text = converter.GetMessage("test.i18n.valueToIntString"); valueToStringFloatTitle.text = converter.GetMessage("test.i18n.valueToFloatString"); TwelveHourClockTitle.text = converter.GetMessage("test.i18n.twelveHourClock"); TwentyFourHourClockTitle.text = converter.GetMessage("test.i18n.twentyFourHourClock"); gameTimeTitle.text = converter.GetMessage("game.modules.i18n.secondsToTime"); languageGermanButtonText.text = converter.GetMessage("test.i18n.languageGermanButton"); languageEnglishButtonText.text = converter.GetMessage("test.i18n.languageEnglishButton"); }
// Update is called once per frame void Update() { converter.language = language; this.stateManager.ExecuteStateUpdate(); gameModeText.text = converter.GetMessage("test.fsm.gameModeString", gameStateString); gameTimeText.text = converter.GetMessage("test.fsm.gameTimeString", converter.secondsToTime(gameTimer.elapsed)); resumeButtonText.text = converter.GetMessage("test.fsm.gameStateButton"); pauseButtonText.text = converter.GetMessage("test.fsm.pauseStateButton"); }
void UpdateDebugPanel() { debugGameTimeText.text = converter.GetMessage("game.debug.gameTime", converter.secondsToTime(GameManager.Instance.gameTime)); debugGameModeText.text = converter.GetMessage("game.debug.gameMode", GameManager.Instance.gameMode); }
// Update is called once per frame void Update() { converter.language = language; gameTimeText.text = converter.GetMessage("test.helpers.timer.gameTimeText", converter.secondsToTime(gameTimer.elapsed)); resumeButtonText.text = converter.GetMessage("test.helpers.timer.resumeTimeButton"); pauseButtonText.text = converter.GetMessage("test.helpers.timer.pauseTimeButton"); }