void UpdateObstacleDuration()
 {
     ObstacleSpawnDuration -= Time.deltaTime;
     if (ObstacleSpawnDuration <= 0)
     {
         currentObstacleType  = ObstacleType.NONE;
         enemySpawner.enabled = false;
         if (shipController.isOnScreen)
         {
             shipController.TakeOffscreen();
         }
         TimeOfLastObstacleSpawn = Time.time;
         ObstacleSpawnDuration   = maxObstacleSpawnDuration;
     }
 }