Example #1
0
 public override bool Check()
 {
     if (_param == BTPrecondition2Param.And)
     {
         return(_precondition1.Check() && _precondition2.Check());
     }
     else
     {
         return(_precondition1.Check() || _precondition2.Check());
     }
 }
Example #2
0
 public bool Evaluate()
 {
     //return activated && CheckTimer() && (precondition == null || precondition.Check()) && DoEvaluate();
     return(activated && (precondition == null || precondition.Check()) && DoEvaluate());
 }