public void InitValue(List <DdzPokerCounter> ddzPokerCounter) { for (int i = 0; i < ddzPokerCounter.Count; i++) { Weight weight = Card.GetWeightByPoker(ddzPokerCounter[i].ds); int count = ddzPokerCounter[i].zs; JipaiqiItem item = items.Find(p => p.weight == weight); item.SetValue(count); } gameObject.SetActive(true); }
public void SetValue(Weight weight) { JipaiqiItem item = items.Find(p => p.weight == weight); item.SetValue(item.curNum - 1); }