private void changeCameraRange(CameraDistanceOfPlayer newRange)
 {
     if (!newRange.Equals (cameraDistance)) {
         if (newRange.Equals (CameraDistanceOfPlayer.Close)) {
             timerZPosition = 0f;
             objectiveZ = originalZ;
         } else if (newRange.Equals (CameraDistanceOfPlayer.MediumRange)) {
             timerZPosition = 0f;
             objectiveZ = -distanceCameraOnSmallPlanet;
         } else if (newRange.Equals (CameraDistanceOfPlayer.SpaceJumpRange)) {
             timerZPosition = 0f;
             objectiveZ = -distanceCameraOnSpaceJump;
         } else if (newRange.Equals (CameraDistanceOfPlayer.CleansePlanet)) {
             timerZPosition = 0f;
             objectiveZ = -distanceCameraOnCleansePlanet;
         }  else if(newRange.Equals (CameraDistanceOfPlayer.GalaxyOverview)) {
             timerZPosition = 0f;
             objectiveZ = GameManager.actualGalaxy.cameraPositionOnGalaxyOverview.transform.position.z;
             GameManager.inputController.disableInputController();
         }
         cameraDistance = newRange;
     }
 }
 public void setObjectiveZStraight(float newObjectiveZ)
 {
     timerZPosition = 0f;
     objectiveZ = -newObjectiveZ;
     cameraDistance = CameraDistanceOfPlayer.CustomStraight;
 }
 void Awake()
 {
     GameManager.registerMainCamera (gameObject);
     cameraDistance = CameraDistanceOfPlayer.Close;
 }
 public void setObjectiveZInclined(float newObjectiveZ)
 {
     timerZPosition = 0f;
     objectiveZ = -newObjectiveZ;
     cameraDistance = CameraDistanceOfPlayer.CustomInclined;
 }