Example #1
0
 public void SetUI(Combination3D combination, int seatPos)
 {
     if (combination.OperatorType == OperatorType.BuXi)
     {
         BuXi(combination.PokerList[0]);
         return;
     }
     Combination = combination;
     for (int i = 0; i < combination.PokerList.Count; ++i)
     {
         if (Combination.OperatorType == OperatorType.LiangXi && i == 3)
         {
             combination.PokerList[i].gameObject.SetParent(m_Containers[4]);
             combination.PokerList[i].transform.position = m_AnimationSrc[4].position;
             combination.PokerList[i].transform.rotation = m_AnimationSrc[4].rotation;
         }
         else
         {
             combination.PokerList[i].gameObject.SetParent(m_Containers[i]);
             combination.PokerList[i].transform.position = m_AnimationSrc[i].position;
             combination.PokerList[i].transform.rotation = m_AnimationSrc[i].rotation;
         }
         if (combination.OperatorType == OperatorType.Gang && combination.SubTypeId == 4 && i < 3)
         {
             combination.PokerList[i].transform.localEulerAngles = new Vector3(180f, 0f, 0f);
         }
         if (combination.OperatorType == OperatorType.Kou)
         {
             combination.PokerList[i].transform.localEulerAngles = new Vector3(180f, 0f, 0f);
         }
         if (Combination.OperatorType == OperatorType.LiangXi && i == 3)
         {
             combination.PokerList[i].transform.DOMove(m_Containers[4].position, 0.3f);
         }
         else
         {
             combination.PokerList[i].transform.DOMove(m_Containers[i].position, 0.3f);
         }
     }
 }
Example #2
0
 public void Reset()
 {
     Combination = null;
     m_XiCount.Clear();
     PokerCount = 0;
 }