private void Update() { fpsText.text = LocalizationManager.instance.GetLocalizedValue("misc_fps_lable") + (1f / Time.deltaTime).ToString("0"); slotText.text = EditorParams.currentSlot == -1 ? LocalizationManager.instance.GetLocalizedValue("editor_temp_slot_lable") : LocalizationManager.instance.GetLocalizedValue("editor_slot_lable") + " " + EditorParams.currentSlot.ToString() + "/" + EditorParams.slotNumber.ToString() + (EditorParams.isSaved ? "" : "*"); xSizeText.text = pu.gridSize.x.ToString("0"); ySizeText.text = pu.gridSize.y.ToString("0"); availableColorsText.text = pu.colorsAvailable.ToString(); sequenceSizeText.text = pu.sequenceSize.ToString(); bonusChanceText.text = pu.bonusesPercentage.ToString() + "%"; energyChanceText.text = pu.energyPercentage.ToString() + "%"; maxEnergyText.text = pu.maximumEnergy.ToString(); timeAvailableText.text = ParamUnit.GetParsedTime(pu.timeAvailable); movesAvailableText.text = pu.movesAvailable.ToString(); incrTime.interactable = pu.timeAvailable != 0; decrTime.interactable = pu.timeAvailable != 0; incrMoves.interactable = pu.movesAvailable != 0; decrMoves.interactable = pu.movesAvailable != 0; winConditionText.text = LocalizationManager.instance.GetLocalizedValue("editor_win_condition_" + pu.winCondition.ToString()); scoreToWinText.text = pu.scoreToWin.ToString(); levelToLoadText.text = EditorParams.loadSlot.ToString(); levelToSaveText.text = EditorParams.saveSlot.ToString(); }
private void Update() { timeText.text = ParamUnit.GetParsedTime((int)lu.timeLeft); movesText.text = lu.movesLeft.ToString(); scoreText.text = LocalizationManager.instance.GetLocalizedValue("game_score") + lu.score.ToString() + "/" + pu.scoreToWin.ToString(); }