xiandie/scene/ground/script/c03/s03_closeup癞子纸人.gd

17 lines
498 B
GDScript3
Raw Normal View History

2025-07-09 15:04:08 +00:00
extends CanvasLayer
@onready var bg = $BG as TextureRect
func _ready() -> void:
layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME
if SceneManager.has_prop("prop_剪刀"):
SceneManager.pop_center_notification("ui_center_notify_use_prop")
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("interact"):
get_viewport().set_input_as_handled()
if SceneManager.get_current_prop() == "prop_剪刀":
pass
else:
SceneManager.get_prop_hud().on_toggle_invalid_prop()