17 lines
498 B
GDScript3
17 lines
498 B
GDScript3
|
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()
|