Пример #1
0
 public override bool Invoke()
 {
     foreach (var Chicken_Node in GetChildrens())
     {
         if (Chicken_Node.Invoke())
         {
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
    public override bool Invoke()
    {
        bool p = false;

        foreach (var Chicken_Node in GetChildrens())
        {
            if (Chicken_Node.Invoke() == false)
            {
                p = true;
            }
        }
        return(!p);
    }