Esempio 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);
        }
Esempio n. 2
0
 public void Kill()
 {
     OnDeath();
     foreach (var i in Belongings)
     {
         i.Kill();
     }
     Game.RemoveElement(this.Name);
 }
Esempio n. 3
0
 public void Dispose()
 {
     Game.RemoveElement(this.Name);
 }