open-strike-2/scenes/utils/menu.gd

23 lines
456 B
GDScript3
Raw Normal View History

extends Control
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
var peer = ENetMultiplayerPeer.new()
func _on_host_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/maps/el_test.tscn")
func _on_join_pressed() -> void:
print("join")