public override void OnLocationChange(Point3D oldLocation) { if (this.Location != oldLocation) { if (m_Child != null && !m_Child.Deleted) { if (m_Child.Location == oldLocation) { m_Child.Update(); } } } base.OnLocationChange(oldLocation); }
private void ProvideEntity() { if (m_Child != null) { m_Child.Delete(); } IDestroyableItem Idam = new IDestroyableItem(this); if (Idam != null && !Idam.Deleted && this.Map != null) { m_Child = Idam; m_Child.Update(); } }