void OnTriggerEnter(Collider other) { if (other.tag == "Wall") { door.Expend(other.transform.rotation); } if (other.tag == "Door") { door.another.Hide(); } }