public void RemoveRelayFunction(NetworkEntity entity, RelayDelegate function)
 {
     RegisterEntity(entity);
     networkEntities[entity.id] = function;
 }