//敵を生成する部分を分離。
 private Character generateEnemy(GenerateData generateData, GameManager gameManager, CharacterManager characterManager)
 {
     if (generateData.enemyType == "Enemy")
     {
         return(new Enemy(generateData.position, gameManager, characterManager));
     }
     if (generateData.enemyType == "Enemy2")
     {
         return(new Enemy2(generateData.position, gameManager, characterManager));
     }
     if (generateData.enemyType == "Enemy3")
     {
         return(new Enemy3(generateData.position, gameManager, characterManager));
     }
     if (generateData.enemyType == "Enemy4")
     {
         return(new Enemy4(generateData.position, gameManager, characterManager));
     }
     if (generateData.enemyType == "Enemy5")
     {
         return(new Enemy5(generateData.position, gameManager, characterManager));
     }
     if (generateData.enemyType == "EnemyBoss")
     {
         return(new EnemyBoss(gameManager, characterManager));
     }
     //敵の種類がわからないときは生成しない。
     return(null);
 }