Esempio n. 1
0
 protected virtual void OnGameFinishEvent(GameFinishEventArgs e)
 {
     if (GameFinishEvent != null) GameFinishEvent.Invoke(this, e);
 }
Esempio n. 2
0
        /// <summary>
        /// GameFinish Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="gameFinishEventArgs"></param>
        private void OnGameFinishEvent(object sender, GameFinishEventArgs gameFinishEventArgs)
        {
            this.ShowInformationOverlay(gameFinishEventArgs.Won
                ? "CONGRATULATION - you won"
                : "SORRY - you lost this game", true);

            //this.CloseTrigger = true;
        }