Hi,
Been trying to find a solution for this issue for sometime now.
The below script has an enum Language, which I need to access from the “public class TextLocaliserUI : MonoBehaviour” I would like to basically switch languages.
Assistance would be appreciated.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LocalisationSystem
{
public enum Language
{
English,
French
}
public static Language language = Language.English;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(Text))]
public class TextLocaliserUI : MonoBehaviour
{
public Text textField;
public string key;
public bool english;
public bool french;
void Start()
{
string value = LocalisationSystem.GetLocalisedValue(key);
textField.text = value;
}