Exemplo n.º 1
0
 public void Stock(int Playerindex)
 {
     rigidBody.velocity = new Vector2(0, 0);
     if (Playerindex == 1)
     {
         stockP1.SetTrigger("Stock");
         LastPlayer = Playerindex;
         P1But.Nstock++;
         P1But.ButSizeUpdate();
         P1But.AddBitcoinToBank();
         GrowUpStock = true;
     }
     else if (Playerindex == 2)
     {
         stockP2.SetTrigger("Stock");
         LastPlayer = Playerindex;
         P2But.Nstock++;
         P2But.ButSizeUpdate();
         P2But.AddBitcoinToBank();
         GrowUpStock = true;
     }
 }