using System.Collections; using System.Collections.Generic; using UnityEngine; //* General Comments or Finished Tasks //TODO Tasks left to be done for game //! Bugs or Issues //? Questions or Suggestions //* Detects if player is in range of enemy public class detectionScript : MonoBehaviour { public bool playerInRange = false; private void OnTriggerEnter(Collider other) { if(other.tag == "Player") { playerInRange = true; } } private void OnTriggerExit(Collider other) { if(other.tag == "Player") { playerInRange = false; } } }