-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.cs
More file actions
55 lines (38 loc) · 1.34 KB
/
Account.cs
File metadata and controls
55 lines (38 loc) · 1.34 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Enjin.SDK.Utility;
using Enjin.SDK.Template;
using Enjin.SDK.PusherClient;
using Enjin.SDK.GraphQL;
using Enjin.SDK.DataTypes;
using Enjin.SDK.Core;
using TMPro;
using UnityEngine.UI;
public class Account : MonoBehaviour
{
public GameObject emailInput; //in order to get the input fields for these UI pieces we needed to import the UI namespace not text mesh pro which I think is different thats more for dynamic texts not UI buttons
public GameObject passwordInput;
private readonly string PLATFORM_URL = "https://kovan.cloud.enjin.io/"; //url to initialize
EnjinPlatform enjinPlatform;
EnjinRequests login;
EnjinIdentities users;
// Start is called before the first frame update
void Start()
{
enjinPlatform.InitializePlatform();
//InitializePlatform(PLATFORM_URL);
}
// Update is called once per frame
void Update()
{
}
async public void Login()
{
string email = emailInput.GetComponent<InputField>().text;
string password = passwordInput.GetComponent<InputField>().text;
//jinUsers users = await users. supposed to get the user identity here
//basically I need enjin documentation on sdk
//users.Get()
}
}