This commit is contained in:
2020-02-02 15:00:38 -05:00
11 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 25942ecb34ea3764fad9cf75dc8a4f70
guid: 08409a4626c473743bfad5cbdeced2f5
AudioImporter:
externalObjects: {}
serializedVersion: 6

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3095e099213c73c4182d9feeae77ebbd
guid: a0bfa73aaf0db804f8fcb5658d35e9bb
AudioImporter:
externalObjects: {}
serializedVersion: 6

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 292f0e8e04642864daaf315efade99c7
guid: 790b6cf6ea95f82488f7f9dc1957cafc
AudioImporter:
externalObjects: {}
serializedVersion: 6

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 33e618f5ded88f7449cf8c6b88e71c8f
guid: 5ca1e8b3336d7554e98fc272bf1370cd
AudioImporter:
externalObjects: {}
serializedVersion: 6

Binary file not shown.

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: aafb1c137c5574744b6c2c5b7d5e7055
guid: 1e1a4d27514614d41b68c68ab0d147d9
AudioImporter:
externalObjects: {}
serializedVersion: 6

View File

@@ -80,6 +80,7 @@ public class Player : MonoBehaviour
{
if (coll.gameObject.tag == "Pizza")
{
SoundManagerScript.PlaySound("eat");
Destroy(coll.gameObject);
currentHealth += currentHealth < startHealth ? 1 : 0;
healthBar.size = new Vector2(1.5f * currentHealth, this.healthBar.size.y);