protected virtual void OnEntityRemoved(Component entity) { if (EntityRemoved != null) { EntityEventArgs e = new EntityEventArgs(entity); EntityRemoved(this,e); } }
protected virtual void OnEntityAdded(Component addedEntity) { if (EntityAdded != null) { EntityEventArgs e=new EntityEventArgs(addedEntity); EntityAdded(this, e); } }