public BehaviorTreeArgsDict Clone() { BehaviorTreeArgsDict behaviorTreeArgsDict = new BehaviorTreeArgsDict(); foreach (KeyValuePair <string, object> keyValuePair in this.dict) { behaviorTreeArgsDict.Add(keyValuePair.Key, Clone(keyValuePair.Value)); } return(behaviorTreeArgsDict); }
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); }
public NodeProto(BehaviorTreeArgsDict dict) { this.Args = dict; }
public NodeProto() { this.Args = new BehaviorTreeArgsDict(); }