public void EditorDeleteAsset(BTAsset asset)
        {
            var node = GlobalUtil.Find(m_BTNodes, (x) => x.Asset == asset);

            if (node != null)
            {
                EditorDeleteNode(node);
            }
        }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 public BTNode(int id, BTAsset asset)
 {
     this.id    = id;
     this.asset = asset;
     moduleName = asset.GetType().Name;
 }