Beispiel #1
0
    public static LocalizedTextLibrary GetInstance()
    {
        if (instance == null)
        {
            instance = new LocalizedTextLibrary();
        }

        return(instance);
    }
    void Awake()
    {
        localizedTextLibrary = LocalizedTextLibrary.GetInstance();

        canvas = GetComponent <Canvas>();

        //exit button
        exit.onClick.AddListener(ExitAction);
    }
Beispiel #3
0
    public LocalizedText(string tag, TextOptions option)
    {
        this.tag    = tag;
        this.option = option;

        languageManager = LanguageManager.GetInstance();
        textLibrary     = LocalizedTextLibrary.GetInstance();

        languageManager.onLanguageChanged += OnLanguageChanged;
    }