Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class OnCollisionEnter : MonoBehaviour {
- bool isDead = false;
- void Update() {
- Debug.Log(isDead);
- }
- OnCollisionEnter(Collision collision) {
- if (collision.gameObject.tag == "Player") {
- isDead = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement