using System.Collections; using System.Collections.Generic; using UnityEngine; public class KettlePotionCard : ScrollViewMgr { public UILabel label_percent; public void Set(List _lst) { gameObject.SetActive(true); label_percent.text = DSUtil.Format("{0}%", (_lst[0] as KettleTableData).Value * 100f); Set_ScrollView(_lst); } public void Refresh_UI() { list_CardBase.ForEach(f => (f as CardInKettlePotion).Set_UI()); } public void Use_AllPotion() { for (int i = 0; i < list_CardBase.Count; i++) { var temp = list_CardBase[i] as CardInKettlePotion; temp.Use(false); } } }