Пример #1
0
 public override void Init(AIRuntimeTaskData data)
 {
     if (data.children != null && data.children.Count > 0)
     {
         node = AIRuntimeFactory.MakeRuntime(data.children[0], _tree);
     }
 }
Пример #2
0
 public override void Init(AIRuntimeTaskData data)
 {
     if (data.children != null)
     {
         for (int i = 0, max = data.children.Count; i < max; i++)
         {
             if (list == null)
             {
                 list = new List <AIRunTimeBase>();
             }
             AIRunTimeBase run = AIRuntimeFactory.MakeRuntime(data.children[i], _tree);
             list.Add(run);
         }
     }
 }