public override void SetSelectInfo() { foreach (GameObject obj in GameObject.FindGameObjectsWithTag("ShopItemButton")) { ShopItemButton shop_item_button = obj.GetComponent <ShopItemButton>(); if (shop_item_button.IsSelect()) { if (!select_id.Contains(shop_item_button.item.Key)) { select_id.Add(shop_item_button.item.Key); } Debug.Log("Add selectid:" + shop_item_button.item.Key); } } }