public void Init(ConstructionType type) { this.type = type; }
public bool CanTransform(ConstructionType other, out ConstructionType result) => result = _upgrades.SingleOrDefault(t => t.upgradeType == other)?.upgradeInto;
public void Init(ConstructionType type) { this.type = type; }
public bool CanTransform(ConstructionType other, out ConstructionType result) => result = _upgrades.SingleOrDefault(t => t.upgradeType == other)?.upgradeInto;