public override bool Exec(Actor actor) { bool tmpBool = false; AIBaseData sourData = null; AIBaseData tarData = null; if (m_funcGetSourValue != null) { sourData = m_funcGetSourValue(actor, ""); } if (m_funcGetTarValue != null) { tarData = m_funcGetTarValue(actor, ""); tmpBool = sourData.CompareValue(mCompareType, tarData); } else { tmpBool = sourData.CompareValue(mCompareType, mValue); } return(tmpBool); }