// INTERNALS private bool InternalEvaluate() { bool result = false; if (m_Condition != null) { result = m_Condition.Evaluate(); } return(!result); }
private bool Evaluate() { bool unlock = (m_Conditions.Count > 0); for (int conditionIndex = 0; conditionIndex < m_Conditions.Count; ++conditionIndex) { UserStatCondition condition = m_Conditions[conditionIndex]; if (condition != null) { bool conditionValue = condition.Evaluate(); unlock &= conditionValue; } } return(unlock); }
// INTERNALS private bool InternalEvaluate() { bool first = false; if (m_FirstCondition != null) { first = m_FirstCondition.Evaluate(); } bool second = false; if (m_SecondCondition != null) { second = m_SecondCondition.Evaluate(); } return(first || second); }