(client) chore:Clean code
This commit is contained in:
@ -7,10 +7,10 @@ namespace Data
|
||||
public class BehaviorTreeDef : Define
|
||||
{
|
||||
public BehaviorTreeDef[] childTree;
|
||||
public string className= "ThinkNode_Selector";
|
||||
public string className = "ThinkNode_Selector";
|
||||
public string value;
|
||||
|
||||
|
||||
|
||||
|
||||
public override bool Init(XElement xmlDef)
|
||||
{
|
||||
base.Init(xmlDef);
|
||||
@ -23,7 +23,7 @@ namespace Data
|
||||
var xElements = nodes as XElement[] ?? nodes.ToArray();
|
||||
if (!xElements.Any())
|
||||
return true; // 没有子节点也是有效的
|
||||
|
||||
|
||||
List<BehaviorTreeDef> children = new();
|
||||
foreach (var node in xElements)
|
||||
{
|
||||
|
Reference in New Issue
Block a user