pushing final changes

This commit is contained in:
Amaan Shawkath
2022-05-10 15:00:29 +01:00
parent 359578a9db
commit fdc05b47c1
12 changed files with 311 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ public class Player : MonoBehaviour
public List<ParticleCollisionEvent> collisionEvents;
public float speedIncrease;
public bool isLit;
public AudioSource damageSfx;
public Camera camera;
@@ -65,6 +66,7 @@ public class Player : MonoBehaviour
if (isLit && Time.timeSinceLevelLoad > 2)
{
health -= 100.0f * Time.deltaTime;
damageSfx.Play();
}
//if health below 0 die