using UnityEngine;

public class Enmy : MonoBehaviour {

  void OnTriggerEnter(Collider other) {
    if (other.name == "Player") {
      Debug.Log("Player detected");
    }
  }
  void OnTriggerExit(Collider other) {
    if (other.name == "Player") {
      Debug.Log("Player out of range");
    }
  }
}