void Update() { if (isOpen) { door_script.opDoor(true); door_script.isCanOpen = false; //------------通過倉庫番 , handle event--------- } else { door_script.isCanOpen = true; } }