Exemplo n.º 1
0
 private void handleTrashCan(Collider other)
 {
     if (other.tag == "Trashcan" && Input.GetKeyDown(KeyCode.E))
     {
         float amountEarned = plasticValue * _currentPickUpAmount;
         shopSystem.SetMoneyAmount(amountEarned);
         shopSystem.SetTotalEarned(amountEarned);
         FindObjectOfType <AudioManager>().Play("ThrowTrash");
         _currentPickUpAmount = 0;
     }
 }