예제 #1
0
 public bool AddMinionToBattlePile(Card card, int position)
 {
     if (card != null)
     {
         return(battlePile.AddMinion(card, position));
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        BattlePile <object> battlePile = new BattlePile <object>(7);

        battlePile[0] = 0;
        battlePile[1] = 1;
        battlePile[2] = 2;
        battlePile[3] = 3;
        battlePile[4] = null;
        battlePile[5] = 5;
        battlePile[6] = null;

        battlePile.AddMinion(10, 3);

        for (int i = 0; i < battlePile.fixedNumber; i++)
        {
            Debug.Log(battlePile[i] + "");
        }
    }