/// <summary> /// @param index /// </summary> public override void ClickButtonAction(int index) { ShopItemButton button = Buttons[index].GetComponent <ShopItemButton>(); button.ToggleSelect(); button.SetButtonText(); SoundManager.instance.PlaySound("UI_Button_Click1"); }
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); } } }