Example #1
0
 public override void Notify(float xCurs, float yCurs)
 {
     if (ColRect.Intersect(this.pFont.pFontSprite.pColRect, new ColRect(xCurs, yCurs, 1, 1)))
     {
         // there is a better way
         // do something clever here
         System.Environment.Exit(0);
     }
 }
 override public void Notify(float xCurs, float yCurs)
 {
     if (ColRect.Intersect(this.pFont.pFontSprite.pColRect, new ColRect(xCurs, yCurs, 1, 1)))
     {
         SceneContext.SetState(SceneContext.Scene.HighScore);
         SceneContext.GetState().Initialize();
         SoundMan.PlaySound(Sound.Name.Shoot);
     }
 }