public void toggleMaxHeight(bool maxHeightReached) { Debug.Log("maxheight " + maxHeightReached); maxHeight = maxHeightReached; if (maxHeightReached) { aeroplaneController.SetAdditionalLift(forceOnMaxHeight); } else { aeroplaneController.SetAdditionalLift(0); } }