示例#1
0
        /// <summary>
        /// 論理式を計算して結果を返す
        /// </summary>
        /// <param name="exp">数式</param>
        /// <returns>計算結果</returns>
        public bool CalcExpressionBoolean(ExpressionParser exp)
        {
            bool ret = exp.CalcExpBoolean(GetParameter, TrySetParameter);

            if (!string.IsNullOrEmpty(exp.ErrorMsg))
            {
                Debug.LogError(exp.ErrorMsg);
            }
            return(ret);
        }
示例#2
0
 /// <summary>
 /// 論理式を計算して結果を返す
 /// </summary>
 /// <param name="exp">数式</param>
 /// <returns>計算結果</returns>
 public bool CalcExpressionBoolean(ExpressionParser exp)
 {
     return(exp.CalcExpBoolean(GetParameter, TrySetParameter));
 }