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