private void Start() { userAPI = GetComponent <TecktalUsersAPI>(); if (loginTest) { userEmail = "*****@*****.**"; pass = "******"; userAPI.GetUser(userEmail, OnSuccess, OnError); enabled = false; } }
private void Awake() { api = GetComponent<TecktalUsersAPI>(); if (testType == TestType.GetAllUsers) { api.GetUser(); }else if (testType == TestType.GetUser) { api.GetUser(email); } else if(testType == TestType.Register) { api.RegisterUser(firstName, lastName, email, password); }else if(testType == TestType.Update) { api.UpdateUser(firstName, lastName, email, password); } }