-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.gd
38 lines (25 loc) · 870 Bytes
/
menu.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
extends Control
func _on_enet_pressed() -> void:
var menu = preload("res://prueba_enet.tscn").instantiate()
add_child(menu)
prints("instancio escena")
await get_tree().create_timer(1).timeout
pass # Replace with function body.
func _on_tcp_pressed() -> void:
var menu = preload("res://prueba_tcp.tscn").instantiate()
add_child(menu)
prints("instancio escena")
await get_tree().create_timer(1).timeout
pass # Replace with function body.
func _on_websocket_pressed() -> void:
var menu = preload("res://prueba_websocket.tscn").instantiate()
add_child(menu)
prints("instancio escena")
await get_tree().create_timer(1).timeout
pass # Replace with function body.
func _on_exit_pressed() -> void:
prints("adios del menu prueba ")
get_tree().quit()
pass # Replace with function body.
func _exit_tree() -> void:
prints("adios del menu prueba ")