Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public LogicData(int index, LogicObject logic, List <LogicValue> list)
 {
     this.LogicContainer = logic;
     this.TargetIndex    = index;
     this.ValueDic       = list.ToDictionary(x => x.Key);
 }
Ejemplo n.º 3
0
 public LogicData(int index, LogicObject logic)
     : this(index, logic, new List <LogicValue>())
 {
 }
Ejemplo n.º 4
0
 public LogicData(LogicObject logic)
     : this(-1, logic)
 {
 }