public override void OnRecycle() { base.OnRecycle(); EntityManagerOld.UnregisterEntity(this); RemoveAllComponents(false); }
protected virtual void RaiseOnComponentRemovedEvent(IComponentOld component) { if (OnComponentRemoved != null) { OnComponentRemoved(this, component); } EntityManagerOld.UpdateEntity(this); }
public override void OnCreate() { base.OnCreate(); EntityManagerOld.RegisterEntity(this); }
void OnDestroy() { EntityManagerOld.UnregisterEntity(this); }