using System; using UnityEngine; public class Pit : MonoBehaviour { private void OnTriggerEnter(Collider other) { other.GetComponent().Reset(); } }