예제 #1
0
    IEnumerator LogInUserCoroutine(WWW www)
    {
        yield return(www);

        if (www.error == null)
        {
            Debug.Log(www.text);
            fresherUser jsonUser = JsonConvert.DeserializeObject <fresherUser>(www.text);
            GameManager.me.userId = jsonUser.Id;
            completedChallenges.GetCompletedChallenges();
            // loggedInMenus.SetActive(true);
            GetUserInfo();
        }
        else
        {
            Debug.Log(www.error);
        }
    }