public void OnTriggerEnter(Collider2D other) { // Debug.Log("triggered"); if (other.tag == "Edge") { enemy.ChangeDirection(); } }
public void OnTriggerEnter(Collider2D other) { if (other.tag == "Edge") { enemy.ChangeDirection(); enemy.Target = null; } }