public void SelectAction(PBEventAction action) { current.Exit(); current = action.NextState(); current.Enter(); }
public void AddTransition(PBState s, float p) { pLinks.Add(new PBTransition(s, p)); }
public void SelectAction(int actionIndex) { current.Exit(); current = current.actions[actionIndex].NextState(); current.Enter(); }
public void Reset() { current = starting; }
public PBFSM(PBState state) { starting = state; current = state; }
public PBTransition(PBState s, float p) { nextState = s; probability = p; }
public PBEventTransition(PBState s, float p) : base(s, p) { }