public void EditorDeleteAsset(BTAsset asset) { var node = GlobalUtil.Find(m_BTNodes, (x) => x.Asset == asset); if (node != null) { EditorDeleteNode(node); } }
public void EditorResovleAsset(Object[] assets) { if (asset == null) { var aname = StringUtil.Concat(moduleName, "_", Identify); var t = GlobalUtil.Find(assets, (x) => x != null && x.name == aname); asset = t as BTAsset; } }
public BTNode(int id, BTAsset asset) { this.id = id; this.asset = asset; moduleName = asset.GetType().Name; }