Esempio n. 1
0
        /// <summary>
        /// Saves the score along with the entered name in the database.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void NameEntered(object sender, Layout.StringEventArgs e)
        {
            base.NameEntered(sender, e);
            string text = e.text.Trim();

            Database.Query("insert into rushState (name, score) values ('" + text + "', " + score + ")");
        }
Esempio n. 2
0
 /// <summary>
 /// Switches to the menu.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public virtual void NameEntered(object sender, Layout.StringEventArgs e)
 {
     gameStateManager.SetState(GameStateManager.State.Menu);
 }