Ejemplo n.º 1
0
 public virtual void Destroy()
 {
     IsActive = false;
     UpdateMgr.Remove(this);
     DrawMgr.Remove(this);
     //if (Rigidbody != null)
     //    PhysicsMgr.Remove(Rigidbody);
 }
 public override void OnDie()
 {
     IsActive = false;
     UpdateMgr.Remove(this);
     DrawMgr.Remove(this);
     //RemoveRigidbody();
     Rigidbody.SetDebugCircle(false);
     //PhysicsMgr.Remove(Rigidbody);
     BulletMgr.RecoverBullet(this);
     Owner = null;
 }