From 0f5f0ea4883077e2ced76025707ce9be21597ec9 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Fri, 10 May 2024 08:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=85=B3=E9=97=A8=E6=95=85?= =?UTF-8?q?=E9=9A=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sceen/platform/screenDoor.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sceen/platform/screenDoor.gd b/sceen/platform/screenDoor.gd index cb3c204..eae35f6 100644 --- a/sceen/platform/screenDoor.gd +++ b/sceen/platform/screenDoor.gd @@ -92,13 +92,14 @@ enum ScreenDoor_Fault_State{ ##设置故障 func setScreenDoorFault (faultType:ScreenDoor_Fault_State)-> void: screenDoorFaultState = faultType + print(screenDoorFaultState, faultType, 'ppp') if faultType == ScreenDoor_Fault_State.glassBreakage : $leftDoor_broken.visible = true $leftDoor_broken/AudioStreamPlayer.play() elif faultType == ScreenDoor_Fault_State.openFault : $MTD.material_override = mtd_fault_material - elif faultType == ScreenDoor_Fault_State.closeFault : - $MTD.material_override = mtd_fault_material + #elif faultType == ScreenDoor_Fault_State.closeFault : + #$MTD.material_override = mtd_fault_material ##恢复故障 func removeScreenDoorFault ()-> void: @@ -139,4 +140,3 @@ func _set_mtd(dark): func _ready(): $MTD.material_override = mtd_material _set_mtd(is_dark) - $SpotLight3D.hide()