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