public ItemOperation(string name, OperationOverTag tag, params UnityAction <Item, IBackpack>[] callBack) { this.callBack = new ItemEvent(); operation_name = name; foreach (var c in callBack) { this.callBack.AddListener(c); } this.tag = tag; }
public ItemOperation(string name, OperationOverTag tag, int priority, params UnityAction <Item, IBackpack>[] callBack) : this(name, tag, callBack) { this.priority = priority; }