private void OnTriggerExit(Collider other) { if (other.tag == "Player") { canSpawn = false; EnteredArea?.Invoke("Town"); } }
private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { canSpawn = true; EnteredArea?.Invoke(area); } }