﻿using UnityEngine;
using System.Collections;

public class checkRainHit : MonoBehaviour {

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

	void OnParticleCollision(GameObject other)
	{
		Debug.Log(collider +" Hit by " + other);

		if(collider.tag == "PlayerRain")
		{
			Debug.Log("Getting Wet");
			PHS.RainDamage();
		}
	}
}
