Exemple #1
0
 protected virtual void OnTurnIsOver(object sender, TurnIsOverEventArgs e)
 {
     if (TurnIsOver != null)
         TurnIsOver(sender, e);
 }
 private void GameEngine_OnTurnIsOver(object sender, TurnIsOverEventArgs turnIsOverEventArgs)
 {
     if(turnIsOverEventArgs.DidPlayerWin)
         PlayerWinTurnStoryboard.Begin();
     else
         ComputerWinTurnStoryboard.Begin();
 }