void Update() { if (currentState) { currentState.StateUpdate(); currentState.CheckForStateExit(); ChangeState(); } else { Debug.Log("Current state is null!"); } }
void Update() { if (currentState) { currentState.StateUpdate(); currentState.CheckForStateExit(); ChangeState(); } else { Debug.Log("Current state is null!"); } }