Пример #1
0
        public override void Apply(Image image)
        {
            Structure structure = new Structure2D();

            structure.SetValues(1, 1, 1, 1, 1, 1, 1, 1, 1);

            ApplyErosion(image, structure);
        }
Пример #2
0
 protected virtual void OnEnable()
 {
     building  = target as Structure2D;
     onDestroy = serializedObject.FindProperty("onDestroy");
 }
Пример #3
0
 public InventoryItemSaveData(ItemData data, int amount, List <ItemSlotData> slots, Warehouse warehouse = null, Structure2D structure = null)
 {
     ID          = data.ID;
     this.amount = amount;
     isLocked    = data.isLocked;
     this.slots.AddRange(slots.ConvertAll(x => new SlotSaveData(x)));
     warehouseID = warehouse != null ? warehouse.EntityID : string.Empty;
     structureID = structure != null ? structure.EntityID : string.Empty;
 }