﻿using UnityEngine;
using System.Collections;

namespace Nostalgia.Example
{
	[AddComponentMenu("Nostalgia/Example/DeadArea")]
	public sealed class DeadArea : MonoBehaviour
	{
		void OnTriggerEnter2D(Collider2D other)
		{
			if (other.CompareTag("Player"))
			{
				other.SendMessage("Dead");
			}
		}
	}
}
