Esempio n. 1
0
 public void OnDraw(VpMachine.DrawEventArgs e)
 {
     if (e.HandResults.Length > HandIndex)
     {
         SetActivePayline(e.HandResults[HandIndex]);
     }
 }
Esempio n. 2
0
 public void OnDraw(VpMachine.DrawEventArgs e)
 {
     for (var i = 0; i < 5; i++)
     {
         HoldSprites[i].SetActive(e.CorrectHolds[i]);
     }
 }
Esempio n. 3
0
File: Hand.cs Progetto: jdd817/VPSim
 public void OnDraw(VpMachine.DrawEventArgs e)
 {
     if (e.HandResults.Length > HandIndex)
     {
         for (var i = 0; i < 5; i++)
         {
             Cards[i].GetComponent <Card>().SetCard(e.HandResults[HandIndex].Hand[i]);
         }
     }
 }
Esempio n. 4
0
    public void OnDraw(VpMachine.DrawEventArgs e)
    {
        var hits = e.HandResults.Where(r => r.PayLineHit == PayLine).ToList();

        if (hits.Count > 0)
        {
            Payout.GetComponent <Text>().text = hits[0].Payout.ToString();
            Hits.GetComponent <Text>().text   = hits.Count.ToString();
            gameObject.SetActive(true);
        }
    }
Esempio n. 5
0
 public void OnDraw(VpMachine.DrawEventArgs e)
 {
     DealSprite.SetActive(true);
     DrawSprite.SetActive(false);
 }
Esempio n. 6
0
 public void OnDraw(VpMachine.DrawEventArgs e)
 {
     SetActivePayline(e.MainHandResult);
 }
Esempio n. 7
0
 // Update is called once per frame
 void OnDraw(VpMachine.DrawEventArgs e)
 {
     GetComponent <Text>().text = VpMachine.statistics.AvgHandLength.ToString("0.00");
 }
Esempio n. 8
0
 // Update is called once per frame
 void OnDraw(VpMachine.DrawEventArgs e)
 {
     GetComponent <Text>().text = VpMachine.statistics.MistakesMade.ToString();
 }
Esempio n. 9
0
 // Update is called once per frame
 void OnDraw(VpMachine.DrawEventArgs e)
 {
     GetComponent <Text>().text = e.AmountWon.ToString();
 }