门头灯调整
This commit is contained in:
parent
11135636c2
commit
cee3ac2217
@ -71,8 +71,6 @@ func _on_left_animation_player_animation_finished(anim_name: StringName) -> void
|
|||||||
$Timer.stop()
|
$Timer.stop()
|
||||||
is_dark = true
|
is_dark = true
|
||||||
_set_mtd(is_dark)
|
_set_mtd(is_dark)
|
||||||
if screenDoorFaultState == ScreenDoor_Fault_State.closeFault:
|
|
||||||
$SpotLight3D.show()
|
|
||||||
|
|
||||||
|
|
||||||
## 屏蔽门的故障枚举
|
## 屏蔽门的故障枚举
|
||||||
@ -130,11 +128,12 @@ func _on_timer_timeout():
|
|||||||
_set_mtd(is_dark)
|
_set_mtd(is_dark)
|
||||||
|
|
||||||
func _set_mtd(dark):
|
func _set_mtd(dark):
|
||||||
|
var self_material = $MTD.get_active_material(0)
|
||||||
if is_dark:
|
if is_dark:
|
||||||
mtd_material.set_shader_parameter('is_dark', true)
|
self_material.set_shader_parameter('is_dark', true)
|
||||||
$SpotLight3D.hide()
|
$SpotLight3D.hide()
|
||||||
else:
|
else:
|
||||||
mtd_material.set_shader_parameter('is_dark', false)
|
self_material.set_shader_parameter('is_dark', false)
|
||||||
$SpotLight3D.show()
|
$SpotLight3D.show()
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
Loading…
Reference in New Issue
Block a user