//Add a transition to the most recently created state. //Transistion is created with at least one expression. protected void AddTransistion(string nextState, Condition condition, float param, bool truth) { FSMTransition transition = new FSMTransition(nextState); latestTransition = transition; latestTransition.AddExpression(condition, param, truth); latestState.AddTransition(transition); }
//Add an expression to the most recently created transition protected void AddExpression(Condition condition, float param, bool truth) { latestTransition.AddExpression(condition, param, truth); }