/// <summary> /// Removes the language changed listener from ChangeLanguageEventHandler. /// </summary> /// <param name="listener">Language changed listener.</param> public void removeLanguageChangedListener(ChangeLanguageEventHandler listener) { if (OnChangeLanguage != null) { OnChangeLanguage -= listener; } }
/// <summary> /// Adds the language changed listener to ChangeLanguageEventHandler. /// </summary> /// <param name="listener">Language changed listener.</param> public void addLanguageChangedListener(ChangeLanguageEventHandler listener) { if (OnChangeLanguage != null) { OnChangeLanguage += listener; } }
protected override void OnDestroy() { //Clear the event handler OnChangeLanguage = null; base.OnDestroy (); }
void OnDestroy() { //Clear the event handler OnChangeLanguage = null; }
/// <summary> /// Removes the language changed listener from ChangeLanguageEventHandler. /// </summary> /// <param name="listener">Language changed listener.</param> public void removeLanguageChangedListener(ChangeLanguageEventHandler listener) { if (OnChangeLanguage != null) { OnChangeLanguage -= listener; } else { OnChangeLanguage = listener; } }
/// <summary> /// Adds the language changed listener to ChangeLanguageEventHandler. /// </summary> /// <param name="listener">Language changed listener.</param> public void addLanguageChangedListener(ChangeLanguageEventHandler listener) { if (OnChangeLanguage != null) { OnChangeLanguage += listener; } }