Esempio n. 1
0
 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);
 }
Esempio n. 2
0
    public void SetValue(Weight weight)
    {
        JipaiqiItem item = items.Find(p => p.weight == weight);

        item.SetValue(item.curNum - 1);
    }