/// <summary>
 /// Handles the Click event of the BackButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     if (OnBackClicked != null)
     {
         OnBackClicked.Invoke(sender, e);
     }
 }
 public void setDefaultAction()
 {
     onBackClicked = GameMenuController.instance.onBackClicked;
 }
Esempio n. 3
0
 public void Back()
 {
     OnBackClicked?.Invoke();
 }