示例#1
0
        public BehaviorTreeArgsDict Clone()
        {
            BehaviorTreeArgsDict behaviorTreeArgsDict = new BehaviorTreeArgsDict();

            foreach (KeyValuePair <string, object> keyValuePair in this.dict)
            {
                behaviorTreeArgsDict.Add(keyValuePair.Key, Clone(keyValuePair.Value));
            }
            return(behaviorTreeArgsDict);
        }
示例#2
0
        public BehaviorTreeArgsDict GetArgsDict()
        {
            BehaviorTreeArgsDict dict = new BehaviorTreeArgsDict();

            foreach (BTTypeBaseComponent item in gameObject.GetComponents <BTTypeBaseComponent>())
            {
                FieldInfo info = item.GetType().GetField("fieldValue");
                dict.Add(item.fieldName, info.GetValue(item));
            }
            return(dict);
        }
示例#3
0
文件: NodeProto.cs 项目: taigacon/ET
 public NodeProto(BehaviorTreeArgsDict dict)
 {
     this.Args = dict;
 }
示例#4
0
文件: NodeProto.cs 项目: taigacon/ET
 public NodeProto()
 {
     this.Args = new BehaviorTreeArgsDict();
 }