Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 49be300

Browse files
committed
Connected run and cleaned code
add comments
1 parent 105ad18 commit 49be300

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Assets/Scripts/Login.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ void Alert(string text)
3636
//Function that uses ARgorithm APIclient to create Account
3737
public void createAccount(string email,string password)
3838
{
39-
Debug.Log(email + " " + password);
4039
StartCoroutine(
4140
APIClient.Instance.create(
4241
new Account
@@ -51,7 +50,6 @@ public void createAccount(string email,string password)
5150

5251
void callback(CreationResponse c)
5352
{
54-
Debug.Log(c.status);
5553
switch (c.status)
5654
{
5755
case "SUCCESS":
@@ -96,7 +94,6 @@ public void login(string email, string password)
9694

9795
void callback(LoginResponse c)
9896
{
99-
Debug.Log(c.status);
10097
switch (c.status)
10198
{
10299
case "SUCCESS":
@@ -143,7 +140,6 @@ void Start()
143140
{
144141
if (NewPasswordInput.text == NewRePasswordInput.text)
145142
{
146-
//Debug.Log("Creating New Account Function");
147143
createAccount(NewEmailInput.text, NewPasswordInput.text);
148144
}
149145

@@ -153,7 +149,6 @@ void Start()
153149
//whether they are registered users on AR cloud server (incomplete function)
154150
LoginButton.onClick.AddListener(() =>
155151
{
156-
//Debug.Log("Existing Account Function");
157152
login(ExistingEmailInput.text, ExistingPasswordInput.text);
158153
});
159154

Assets/Scripts/MainMenu.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void verify()
3939

4040
void callback(LoginResponse c)
4141
{
42-
Debug.Log(c.status);
4342
switch (c.status)
4443
{
4544
case "SUCCESS":
@@ -72,7 +71,6 @@ public void connect(string uri = "https://argorithm.el.r.appspot.com")
7271

7372
void callback(ConnectionResponse c)
7473
{
75-
Debug.Log(c.status);
7674
switch (c.status)
7775
{
7876
case "AUTH":
@@ -119,7 +117,6 @@ void Start()
119117
//Takes "Enter server endpoint" as input value
120118
ConnectToLocalServerButton.onClick.AddListener(() =>
121119
{
122-
//Debug.Log(ServerEndpointInput.text);
123120
connect(ServerEndpointInput.text);
124121
});
125122
}

0 commit comments

Comments
 (0)