Exemple #1
0
    protected override void initialize()
    {
        manager = new MatchManager(playerDeck.text, enemyDeck.text);

        playerHealth.Initialize(Player);
        enemyHealth.Initialize(Enemy);

        playerKeyboard.Initialize(Player);
        enemyKeyboard.Initialize(Enemy);

        playerDrawer.Initialize(Player.Deck);
        enemyDrawer.Initialize(Enemy.Deck);

        playerTyper.Initialize(Player);
        enemyTyper.Initialize(Enemy);

        playerTypeBar.Initialize(Player);
        enemyTypeBar.Initialize(Enemy);

        playerCards.Initialize(Player);
        enemyCards.Initialize(Enemy);
    }
Exemple #2
0
    void Awake()
    {
        CardQueue cardQueue = new CardQueue();

        cardQueue.Initialize(deck, card);
    }