public void newMachine(HStateMachine _hfsm) { if (!started) { hfsm.Add(_hfsm); } else { Debug.LogWarning("Can't add new machine behaviors once agent has started, behaviours should be added earlier."); } }
public void init () { started = true; if (hfsm.Count > 0) { current = hfsm[0]; } else { Debug.LogWarning("No Behaviours added to state machine list."); return; } current.enter(current.initialState); }