private void FixedUpdate() { if (GameManager.IsGamePaused) { return; // always check for paused state } CurrentState.FixedUpdate(this); // call FixedUp on states GameUtil.ApplyGravityToRB(RB, gravity); // always apply gravity }