//Jimmy Vegas Unity Tutorial //This script is for respawning using System.Collections; using System.Collections.Generic; using UnityEngine; public class LedgeRespawn : MonoBehaviour { public GameObject fadeIn; public GameObject thePlayer; void OnTriggerEnter(Collider other) { if (other.tag == "Player") { thePlayer.transform.position = new Vector3(59, -10, 54); fadeIn.GetComponent().Play("FadeScreenIn"); } } }