示例#1
0
        private void CheckDeath(Character ch, GameMenu gmenu)
        {
            if (ch.CurrentHealth <= 0)
            {
                if (ch.Life - 1 <= 0)
                {
                    profile.SaveGame.CheckPoint = null;
                    this.Close();
                    gmenu.GameOver();
                }
                else
                {
                    gmenu.LoadLevel(profile.CurrentLocAndLev.CurrentLocation, profile.CurrentLocAndLev.CurrentLevel, true);
                    this.Close();
                }

                this.Dispose();
            }
        }
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     this.Close();
     gm.LoadLevel(p.CurrentLocAndLev.CurrentLocation, p.CurrentLocAndLev.CurrentLevel, false);
 }