Exemplo n.º 1
0
 public void Buy_Blue()
 {
     if (coins_Int > 9 && InventoryScript.Blue == false)
     {
         InventoryScript.BlueColor();
         coins_Int -= 10;
         happyKids.Play();
         Blue_Button.SetActive(false);
     }
     if (coins_Int <= 9 && InventoryScript.Blue == false)
     {
         Debug.Log("Not enough coins!");
     }
     if (InventoryScript.Blue == true)
     {
         Debug.Log("You've already purchased this color! Check your inventory!");
     }
 }