コード例 #1
0
    void OpenCardPack()
    {
        Draft cardPack = WindowManager.ShowScreen(WindowManager.cardPack).GetComponent <Draft>();

        float[]  dropModifiers = LootTable.CreateForceDropModifiers(this.selectedItem.rarity);
        CardType includeCard   = Deck.instance.RandomCard(dropModifiers);

        cardPack.SetIncludeCard(includeCard);
        cardPack.CreateDraft();
    }