private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Parede" && dir == enemiesManager.dir) { enemiesManager.BateuParede(); } }