private IEnumerator DealCards()
    {
        endTurn.interactable = false;
        yield return(_lifeformDeck.Deal());

        yield return(new WaitForSeconds(1f));

        yield return(_planetDeck.Deal());

        _state = GameState.PlayerAction;
        endTurn.interactable = true;
    }
예제 #2
0
    // Update is called once per frame
    void Update()
    {
        switch (_state)
        {
        case GameState.Initial:
            _state = GameState.DealCards;
            break;

        case GameState.DealCards:
            lifeformDeck.Deal();
            planetDeck.Deal();
            _state = GameState.PlayerAction;
            break;
        }
    }