﻿using UnityEngine;
using System.Collections;

public class DamageTrigger : MonoBehaviour {

	public PlayerHealth PHS;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerStay2D(Collider2D other) {

		Debug.Log(collider +" Hit by " + other);
		if(other.tag == "Player")
		{
			Debug.Log("Pain trigger area");
			PHS.RainDamage();
		}
	}

}
