void OnTriggerStay2D(Collider2D coll) { if (coll.gameObject.tag == "Player") { ai.SearchForPlayer(); } }