using UnityEngine; using System.Collections; using System.Collections.Generic; public class Death : MonoBehaviour { public Transform spawn_point; public GameObject player; private void OnTriggerStay (Collider other) { other.transform.position = spawn_point.transform.position; } }