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