immersive-home/content/system/armband/armband.gd

16 lines
323 B
GDScript3
Raw Normal View History

2024-01-16 16:00:30 +02:00
extends Node3D
@onready var menu_button = $Menu
@onready var mini_button = $Mini
@onready var clock = $Clock
@onready var main = $"/root/Main"
func _ready():
menu_button.on_button_down.connect(func():
main.toggle_menu()
)
mini_button.on_button_down.connect(func():
House.body.mini_view = !House.body.mini_view
)