public static LogicNodeBase Create(LogicObject obj, Vector2 pos, Type type) { LogicNodeBase nb = ScriptableObject.CreateInstance(type) as LogicNodeBase; nb.Pos = pos; nb.CurrentLogicObject = obj; return(nb); }
public LogicData(int index, LogicObject logic, List <LogicValue> list) { this.LogicContainer = logic; this.TargetIndex = index; this.ValueDic = list.ToDictionary(x => x.Key); }
public LogicData(int index, LogicObject logic) : this(index, logic, new List <LogicValue>()) { }
public LogicData(LogicObject logic) : this(-1, logic) { }