private void Start() { activeState = initialStateSelector.SelectNode(); activeState.OnStateEnter(); activeState.SetParentState(this); AIHandlerHSMs.AddMachine(this); }
public override void OnStateEnter() { base.OnStateEnter(); activeState = initialStateSelector.SelectNode(); activeState.OnStateEnter(); activeState.SetParentState(this); }