(client) feat:窗口新增独占、占用输入属性,添加部分行为树节点和工作类
This commit is contained in:
7
Client/Assets/Scripts/Data/BuildingDef.cs
Normal file
7
Client/Assets/Scripts/Data/BuildingDef.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Data
|
||||
{
|
||||
public class BuildingDef:PawnDef
|
||||
{
|
||||
|
||||
}
|
||||
}
|
3
Client/Assets/Scripts/Data/BuildingDef.cs.meta
Normal file
3
Client/Assets/Scripts/Data/BuildingDef.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3855e1d8b2ab4cae904771195fa46cc5
|
||||
timeCreated: 1753703020
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Linq;
|
||||
using UnityEditor.ShaderGraph.Internal;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Data
|
||||
|
@ -1,8 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine.Tilemaps;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ namespace Data
|
||||
{
|
||||
public BehaviorTreeDef[] childTree;
|
||||
public string className="Selector";
|
||||
public string condition;
|
||||
public string value;
|
||||
|
||||
|
||||
public override bool Init(XElement xmlDef)
|
||||
@ -33,7 +33,7 @@ namespace Data
|
||||
|
||||
// 从当前节点获取className和condition属性
|
||||
className = xmlDef.Attribute("className")?.Value ?? className;
|
||||
condition = xmlDef.Attribute("condition")?.Value;
|
||||
value = xmlDef.Attribute("value")?.Value;
|
||||
|
||||
var nodes = xmlDef.Elements("Node");
|
||||
if (!nodes.Any())
|
||||
|
Reference in New Issue
Block a user