示例#1
0
 void Update()
 {
     if (door != null)
     {
         if (enemy == null)
         {
             door.GetComponent <RoomLoader>().ChangeSprite();
             door.GetComponent <Collider2D>().isTrigger = true;
         }
     }
 }