示例#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;
 }
 public virtual void EndEffect()
 {
     UpdateMgr.Remove(this);
 }
 public void End()
 {
     UpdateMgr.Remove(this);
     TimeMgr.RemoveTimer(this);
 }
 public void Pause()
 {
     UpdateMgr.Remove(this);
 }