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