//Add a new expression by supplying the constructor parameters for it public void AddExpression(Condition ncondition, float nparam, bool ntruth) { FSMExpression newExp = new FSMExpression(); newExp.condition = ncondition; newExp.param = nparam; newExp.trueIfConditionTrue = ntruth; expressions.Add(newExp); }
public void AddExpression(FSMExpression expression) { expressions.Add(expression); }