void Start()
    {
        string currentUid = PlayerPrefs.GetString("Uid");

        Debug.Log(currentUid);

        if (currentUid == "")
        {
            currentUid = GenerateUniqueId();
            PlayerPrefs.SetString("Uid", currentUid);
        }

        playerInfo = new PlayerInfo(
            currentUid,
            PlayerPrefs.GetString("Name"),
            PlayerPrefs.GetInt("Level"),
            myJob
            );

        if (myJob != "")
        {
            playerInfo.job = myJob;
        }
        if (deadPanel != null)
        {
            deadPanel.SetActive(false);
        }

        loadingScreenControl.Hide();
        HideDisconnectedPage();
    }
Exemplo n.º 2
0
 void ResetAllAssociateObject()
 {
     if (showScore != null)
     {
         showScore.ResetValue();
     }
     gameState.gameObject.SetActive(false);
     escapeMenu.ShowHideEscapeMenuList(false);
     escapeMenu.gameObject.SetActive(false);
     loadingScreenControl.Hide();
 }