private void Update() { if (Time.timeScale != 0f) { currentState.StateUpdate(); } }
/// <summary>Update loop for the states of the state machine</summary> public void CurrentStateUpdate() { if (currentState != null) { currentState.StateUpdate(); } }