Esempio n. 1
0
 public void ThrowRock()
 {
     if (playerPropertiesScript.currentAmmo >= 1)
     {
         Instantiate(rockPrefab, throwPosition.position, transform.rotation);
         audioManager.PlaySound("ThrowRock");
         playerPropertiesScript.ReduceAmmo();
     }
     else
     {
         Debug.Log("NO AMMO");
         //play sound click
     }
 }