Ejemplo n.º 1
0
 public void OnPageActive()
 {
     loginManager      = gameObject.GetComponent <PlayfabLogin>();
     feedbackText.text = "";
     usernameText.text = loginManager.getDisplayName();
     if (loginManager.isLoggedIn())
     {
         GetLeaderboard();
     }
     else
     {
         PlayfabUtils.OnError(feedbackText, "You must login first to see the leaderboard!");
     }
 }
Ejemplo n.º 2
0
    public void OnPageActive()
    {
        loginManager      = gameObject.GetComponent <PlayfabLogin>();
        feedbackText.text = "";
        leaveBtn.SetActive(false);
        playBtn.SetActive(false);

        usernameText.text = loginManager.getDisplayName();
        enemyText.text    = "Loading...";
        if (loginManager.isLoggedIn())
        {
            backBtn.GetComponent <Button>().interactable = false;
            StartMatchmaking();
        }
        else
        {
            backBtn.GetComponent <Button>().interactable = true;
            PlayfabUtils.OnError(feedbackText, "You must login first to start matchmaking!");
        }
    }