using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameplayWater : MonoBehaviour {

	public GameObject playerObject;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void FixedUpdate () {
		
	}

	void OnTriggerEnter (Collider toucher){
		if (toucher.tag == "Player") {
			playerObject.GetComponent<PlayerMovement> ().playerIsDead = true;
		}

	}
}
