public override void ProcessEvent(Event ev) { base.ProcessEvent(ev); if (ev is BreakableDestroyed && !(ev is BreakableHit)) { SingleScore s = new SingleScore(this); int scoreToAdd = 0; switch ((ev as BreakableDestroyed).Broken) { case BreakableBody.BodyMaterial.WOOD: scoreToAdd += 100; break; case BreakableBody.BodyMaterial.GLASS: scoreToAdd += 50; break; case BreakableBody.BodyMaterial.CONCRETE: scoreToAdd += 200; break; } score += scoreToAdd; s.Text = scoreToAdd.ToString(); s.Initialize(BaseGame.Get.Content); s.Width = s.Height = 10; s.Position = ev.Position; scene.AddNode(s); } }