|
|
@ -56,6 +56,9 @@ namespace Fungus |
|
|
|
case CompareOperator.GreaterThanOrEquals: |
|
|
|
case CompareOperator.GreaterThanOrEquals: |
|
|
|
condition = lhs >= rhs; |
|
|
|
condition = lhs >= rhs; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
Debug.LogError("The " + compareOperator.ToString() + " comparison operator is not valid."); |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return condition; |
|
|
|
return condition; |
|
|
@ -65,7 +68,6 @@ namespace Fungus |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (setOperator) |
|
|
|
switch (setOperator) |
|
|
|
{ |
|
|
|
{ |
|
|
|
default: |
|
|
|
|
|
|
|
case SetOperator.Assign: |
|
|
|
case SetOperator.Assign: |
|
|
|
Value = value; |
|
|
|
Value = value; |
|
|
|
break; |
|
|
|
break; |
|
|
@ -81,6 +83,9 @@ namespace Fungus |
|
|
|
case SetOperator.Divide: |
|
|
|
case SetOperator.Divide: |
|
|
|
Value /= value; |
|
|
|
Value /= value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
Debug.LogError("The " + setOperator.ToString() + " set operator is not valid."); |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|