addLanguageChangedListener() public method

Adds the language changed listener to ChangeLanguageEventHandler.
public addLanguageChangedListener ( ChangeLanguageEventHandler listener ) : void
listener ChangeLanguageEventHandler Language changed listener.
return void
    void Start()
    {
        //Subscribe to the change language event
        thisLanguageManager = LanguageManager.Instance;
        thisLanguageManager.addLanguageChangedListener(OnChangeLanguage);

        //Run the method one first time
        OnChangeLanguage(thisLanguageManager);
    }
Beispiel #2
0
    void Start()
    {
        //Subscribe to the change language event
        thisLanguageManager = LanguageManager.Instance;
        thisLanguageManager.addLanguageChangedListener(OnChangeLanguage);

        //Run the method one first time
        OnChangeLanguage(thisLanguageManager);
    }
Beispiel #3
0
    void Start()
    {
        textMesh = GetComponent <TextMesh>();

        if (textMesh != null)
        {
            //Subscribe to the change language event
            thisLanguageManager = LanguageManager.Instance;
            thisLanguageManager.addLanguageChangedListener(OnChangeLanguage);

            //Run the method one first time
            OnChangeLanguage(thisLanguageManager);
        }
    }
    void Start()
    {
        textMesh=GetComponent<TextMesh>();

        if (textMesh!=null)
        {
            //Subscribe to the change language event
            thisLanguageManager = LanguageManager.Instance;
            thisLanguageManager.addLanguageChangedListener(OnChangeLanguage);

            //Run the method one first time
            OnChangeLanguage(thisLanguageManager);
        }
    }