Exemplo n.º 1
0
 public void OnDealClick()
 {
     ClearTable();
     player.SetBetAmount((int)betSlider.value);
     SetDeal(false);
     StartCoroutine(dealer.Deal());
     player.ToggleTableLean();
     ChangeFunds(-(int)betSlider.value);
 }
Exemplo n.º 2
0
    //Plays the animation for reshuffling the deck
    //as it calls for the deck to actually shuffle
    //and refill itself.
    private IEnumerator ReshuffleDeck()
    {
        yield return(new WaitForSeconds(1.0f));

        player.ToggleTableLean();
        voice.clip = voiceLines[3];
        voice.Play();
        yield return(new WaitForSeconds(2.0f));

        deck.GetComponent <Animation>().Play("deckShuffleAnimation");
        anim.Play("godBossShuffleAnimation");
        while (voice.isPlaying)
        {
            yield return(new WaitForSeconds(0.01f));
        }
        player.ToggleTableLean();
    }