Exemplo n.º 1
0
 public void Init(LogicObject logicObject)
 {
     for (int i = 0; i < GetLogicComs().Count; i++)
     {
         ConditionComponentBase td = (ConditionComponentBase)GetLogicComs()[i];
         td.Initialize(logicObject);
         conditionComponentObjs.Add(td);
     }
 }
Exemplo n.º 2
0
 public bool ConditionCompare(params object[] objs)
 {
     if (!enable)
     {
         return(false);
     }
     for (int i = 0; i < conditionComponentObjs.Count; i++)
     {
         ConditionComponentBase td = conditionComponentObjs[i];
         if (!td.CompareCondition(objs))
         {
             return(false);
         }
     }
     return(true);
 }