修复condition检查
parent
2f72c6de4e
commit
d442b33b3c
|
|
@ -17160,6 +17160,7 @@ MonoBehaviour:
|
|||
isSort: 0
|
||||
isAutoSetDrag: 0
|
||||
isShowArrow: 0
|
||||
trailingPadding: 0
|
||||
lines: 4
|
||||
squareSpacing: 0
|
||||
cell: {fileID: 3870917497631202409}
|
||||
|
|
|
|||
|
|
@ -114,6 +114,10 @@ namespace Framework.Condition
|
|||
public bool CheckCondition(string condition)
|
||||
{
|
||||
string conditionName = Regex.Replace(condition, @"\(.*?\)", string.Empty);
|
||||
if (string.IsNullOrEmpty(conditionName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
ConditionType conditionType = GetConditionType(conditionName);
|
||||
GetConditionStringArgs(condition, ref _tempConditionArgs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue