public void OnComponentInstalation(Entity parentEntity, Entity componentInstance) { if (!parentEntity.HasDataBlob <CargoStorageDB>()) { parentEntity.SetDataBlob(new CargoStorageDB()); } StorageSpaceProcessor.ReCalcCapacity(parentEntity); }
public void OnComponentInstallation(Entity parentEntity, ComponentInstance componentInstance) { if (!parentEntity.HasDataBlob <CargoStorageDB>()) { var db = new CargoStorageDB(); parentEntity.SetDataBlob(db); StorageSpaceProcessor.ReCalcCapacity(parentEntity); } }