// 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()
    }
예제 #2
0
 void Awake()
 {
     item_get = this;
 }
예제 #3
0
 private void Awake()
 {
     item_image_script = this;
 }