using UnityEngine;
using System.Collections;
public class PlayerDeath : MonoBehaviour {
public GameManager TheGameManager;
void Start () {
TheGameManager = GetComponent<GameManager> ();
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter2D(Collider2D other){
if(other.name == "Player")
{
TheGameManager.RespawnPlayer();
}
}
}