Перевод текста
Добавлено: 21 янв 2021, 13:03
Добрый день. Подскажите, пожалуйста, как можно сделать перевод фразы "Last hightscore: "? Перевод обычного текста у меня получилось сделать. Если тут делать так же, то подсчет очков больше не идет, просто слово "Рекорд" на разных языках (в зависимости от выбранного) без очков.
Синтаксис:
Используется csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Record : MonoBehaviour
{
public Text Records;
private Text comp;
// Start is called before the first frame update
void Start()
{
comp = GetComponent<Text>();
comp.text = PlayerPrefs.GetInt("Record").ToString();
Records.text = "Last hightscore: " + comp.text;
}
}
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Record : MonoBehaviour
{
public Text Records;
private Text comp;
// Start is called before the first frame update
void Start()
{
comp = GetComponent<Text>();
comp.text = PlayerPrefs.GetInt("Record").ToString();
Records.text = "Last hightscore: " + comp.text;
}
}