// Start is called before the first frame update
    void Start()
    {
        message_set = MessageSetScript.message_set;
        enemymoving = EnemySetfightSceneMoving.enemyset;
        EnemyObjectSet(enemymoving.objes);
        set    = enemy_parameter_set.set;
        player = playerStatus.player_status;
        player.GetComponent <player_colider>().enabled       = false;
        player.GetComponent <playerMoveController>().enabled = false;
        button.Select();
        item_base     = ItemDataBase.item_base;
        ItemGetScript = ItemImageGetScript.item_image_script;
        foreach (ItemList item in item_base.items)
        {
            GameObject g = Instantiate(ItemIcon, Center_objes.transform.position, Quaternion.identity, Center_objes.transform);
            if (item.image != null)
            {
                //g.GetComponent<Image>().sprite = Sprite.Create(item.itemIcon, new Rect(0, 0, item.itemIcon.width, item.itemIcon.height), Vector2.zero);
                g.GetComponent <Image>().sprite = item.image;
            }

            g.GetComponent <ItemIconClickScript>().item = item;
        }
        message_set.MessageSet("敵が#{enemy_count}体現れた!");
        //foreach()
    }
 public void Finish()
 {
     player.GetComponent <player_colider>().enabled       = true;
     player.GetComponent <playerMoveController>().enabled = true;
     EnemyGetScript.enemy_get_script.destroy = true;
     SceneManager.LoadScene("ItemSetStart");
 }