using UnityEngine;
using System.Collections;

public class WinTrigger : MonoBehaviour 
{
	void OnTriggerEnter2D(Collider2D other)  
	{
		if (other.gameObject.tag == "Player")
		{

			NotificationCenter.DefaultCenter().PostNotification(this, "WinLevel");
			Debug.Log ("win trigger");
		}
	}
}
