/// <summary> /// Close the language selection window and animate out. /// </summary> protected void LanguageSelectionComplete() { // dispatching event if (LanguageSelectionEvents.OnLanguageSelected != null) { LanguageSelectionEvents.OnLanguageSelected(this, new EventArgs()); } // playing exit animation GetComponent <Animator>().Play("Popup_Outro"); }
/// <summary> /// Handler for the event when the close button on the language selection panel is selected /// </summary> public void OnCloseButtonSelected() { // playing exit animation GetComponent <Animator>().Play("Popup_Outro"); // dispatching close event if (LanguageSelectionEvents.OnLanguageSelectionClosed != null) { LanguageSelectionEvents.OnLanguageSelectionClosed(this, new EventArgs()); } ResetUI(); // playing sound AudioEvent.Play(AudioEventName.Ftue.Stereo.ExitButton, gameObject); }