/// <summary>
 /// Handles the Click event of the start control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs" /> instance containing the event data.</param>
 private void StartButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (OnStartButtonClicked != null)
     {
         OnStartButtonClicked.Invoke(this, e);
     }
 }
示例#2
0
 public void StartButtonClicked()
 {
     OnStartButtonClicked?.Invoke();
     gameTitle.gameObject.SetActive(false);
     startButton.gameObject.SetActive(false);
     levelText.gameObject.SetActive(true);
     enemiesText.gameObject.SetActive(true);
 }