コード例 #1
0
    //坊主を引いた処理
    public void Bouzu_Draw()
    {
        Debug.Log("坊主" + deck.Count + "のばん");

        MasterList.instance.list[deck.Count].Add(deck.drawcard);//手札に追加

        int e = MasterList.instance.list[deck.Count].Count;

        //手札を捨て札に加算
        for (int t = 0; t < e; t++)
        {
            int y = MasterList.instance.list[deck.Count][0];
            deck.DiscardCount.Add(y);
            MasterList.instance.list[deck.Count].RemoveAt(0);
        }

        MasterList.instance.list[deck.Count].Clear();//手札を初期化
        cardAnime.movePlace = deck.Count;
        cardAnime.AnimeBouzu();
    }