This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
family-lineage/client/scenes/AuthScene.gd
2020-08-15 17:42:49 -04:00

23 lines
589 B
GDScript3

extends Node
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
return
var result : int
result = yield(ServerConnection.authenticate_async("j@cloudsumu.com", "Learning12!"), "completed")
if result == null:
print("Logged In")
else:
print("Auth failed! Error code: %d" % result)
result = yield(ServerConnection.signup_async("j@cloudsumu.com", "Learing12!"), "completed")
if result == null:
print("Registered!")
else:
print("Signup failed! Error code: %d" % result)