private void SetCameraPosition(bool conversationActive) { // Only set the camera position // if the game object is active in the heirarchy if (gameObject.activeInHierarchy) { if (foldoutToggle.isOn) { if (conversationActive) { dialogueActiveZoom.Apply(scroll.normalizedPosition, smoothingTime); } else { dialogueInactiveZoom.Apply(scroll.normalizedPosition, smoothingTime); } } } }