Ошибка в скрипте локализации
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class TextLocalization : MonoBehaviour
{
public string language;
TMP_Text tmp_text;
public textRu
public textEng
void Start()
{
TMP_Text = GetComponent<TMP_Text>();
language = PlayerPrefs.GetString("Language");
if(language == "" || language == "Eng")
{
TMP_Text.TMP_Text = textEng;
}
else if(language == "Ru")
{
TMP_Text.TMP_Text = textRu;
}
}
}