Example #1
0
File: mainMenu.cs Project: ocept/g3
 //update menu text based on last play
 void Level_playerDead(object level, deadPlayerEventArgs e)
 {
     string minutes = e.aliveTime.Minutes > 0 ? (e.aliveTime.Minutes > 1 ? (e.aliveTime.Minutes.ToString() + " Minutes and ") : (e.aliveTime.Minutes.ToString() + " Minute and ")) : "";
     timerTextLabel.Text = "You survived for " + minutes + e.aliveTime.Seconds + " Seconds";
     timerTextLabel.Visible = true;
 }
Example #2
0
File: Form1.cs Project: ocept/g3
 //executes on player death
 void Level_playerDead(object level, deadPlayerEventArgs e)
 {
     this.Close();
 }