예제 #1
0
 private void frontAction()
 {
     if (usedList.Count > 0)
     {
         //play = false;
         GameBehaviourVO temp = usedList [0];
         usedList.RemoveAt(0);
         int tempcurIndex = getCurIndex(temp.accountindex_id);
         if (temp.type == 1)
         {
             frontIncard(tempcurIndex, int.Parse(temp.cardIndex));
         }
         else if (temp.type == 2)
         {
             stepNum--;
             frontOutcard(tempcurIndex, int.Parse(temp.cardIndex));
             cardCount++;
             showCardNumber();
             frontAction();
             return;
         }
         else if (temp.type == 3)
         {
             frontChiCard(tempcurIndex, temp.getOutCard());
         }
         else if (temp.type == 4)
         {
             frontPengCard(tempcurIndex, int.Parse(temp.cardIndex));
         }
         else if (temp.type == 5)
         {
             frontGangCard(tempcurIndex, int.Parse(temp.cardIndex), temp.gangType);
         }
         else if (temp.type == 6)
         {
             frontHuCard(tempcurIndex, int.Parse(temp.cardIndex));
         }
         else if (temp.type == 7)
         {
             frontOutcard(tempcurIndex, int.Parse(temp.cardIndex));
         }
         else if (temp.type == 8)
         {
             //frontZhuaMa ();
         }
         else if (temp.type == 9)
         {
             frontLiuju();
         }
         SetDirGameObjectAction(tempcurIndex);
         stepNum--;
         processText.text = "播放进度:" + (int)(stepNum * 100 / aa.behavieList.Count) + "%";
         //play = true;
     }
 }
예제 #2
0
    private void stepAction()
    {
        GameBehaviourVO temp = aa.behavieList[stepNum];

        usedList.Insert(0, temp);
        int tempcurIndex = getCurIndex(temp.accountindex_id);

        if (temp.type == 1)
        {
            outCard(tempcurIndex, int.Parse(temp.cardIndex));
        }
        else if (temp.type == 2)
        {
            pickCard(tempcurIndex, int.Parse(temp.cardIndex));
        }
        else if (temp.type == 3)
        {
            chiCard(tempcurIndex, temp.getOutCard());
        }
        else if (temp.type == 4)
        {
            pengCard(tempcurIndex, int.Parse(temp.cardIndex));
        }
        else if (temp.type == 5)
        {
            gangCard(tempcurIndex, int.Parse(temp.cardIndex), temp.gangType);
        }
        else if (temp.type == 6)
        {
            huCard(tempcurIndex, int.Parse(temp.cardIndex));
        }
        else if (temp.type == 7)
        {
            qiangGangHu(tempcurIndex, int.Parse(temp.cardIndex));
        }
        else if (temp.type == 8)
        {
            if (roomType == (int)GameType.GameType_MJ_HuaShui)              //划水麻将不显示码框
            {
            }
            else
            {
                zhuama(temp.ma, temp.valideMa);
            }
        }
        else if (temp.type == 9)
        {
            liuju();
        }
        SetDirGameObjectAction(tempcurIndex);
        stepNum++;
    }