Exemplo n.º 1
0
        new public void Kill()
        {
            var remove_drawable = typeof(Game).GetMethod("RemoveDrawable", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);

            remove_drawable.Invoke(null, new object[] { this });
            Game.RemoveElement(this.Name);
        }
Exemplo n.º 2
0
 public void Kill()
 {
     OnDeath();
     foreach (var i in Belongings)
     {
         i.Kill();
     }
     Game.RemoveElement(this.Name);
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     Game.RemoveElement(this.Name);
 }