using UnityEngine; using System.Collections; public class PlayerTrigger : MonoBehaviour { void OnTriggerEnter(Collider other) { Debug.Log ("Enter"); } void OnTriggerStay(Collider other) { Debug.Log("Stay"); } void OnTriggerExit(Collider other) { Debug.Log ("Exit"); } }