/// <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); }
/// <summary> /// 論理式を計算して結果を返す /// </summary> /// <param name="exp">数式</param> /// <returns>計算結果</returns> public bool CalcExpressionBoolean(ExpressionParser exp) { return(exp.CalcExpBoolean(GetParameter, TrySetParameter)); }