Skip to content
Snippets Groups Projects
Commit 5bdab6ff authored by Ryan Hoppe (rmh898)'s avatar Ryan Hoppe (rmh898)
Browse files

Changed the health decrement for a more proper statement

parent 8a52b191
No related branches found
No related tags found
No related merge requests found
using UnityEngine;
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
......@@ -21,7 +21,7 @@ public class PlayerHealth : MonoBehaviour {
void OnTriggerEnter2D(Collider2D other) {
if (other.gameObject.tag == "Enemy") {
Debug.Log("hit");
health--;
health = health - 1;
}
}
......@@ -31,4 +31,4 @@ public class PlayerHealth : MonoBehaviour {
void OnLevelWasLoaded() {
spawn.player.transform.position = spawn.spawnPoint[EnterDoor.spawnPointIndex].position;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment