This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _instance_num := -1 | |
var _instance_socket: TCPServer | |
func _init() -> void: | |
if OS.is_debug_build(): | |
_instance_socket = TCPServer.new() | |
for n in range(0,4): | |
if _instance_socket.listen(5000 + n) == OK: | |
_instance_num = n | |
break |