Пример #1
0
    private void Start()
    {
        NoInternetIcon.SetActive(false);

        if (YipliHelper.checkInternetConnection())
        {
            //LoadingPanel.SetActive(true);
            GetPlayerData();
            //LoadingPanel.SetActive(false);
        }
        else
        {
            ps.SetCoinScore(0);
            ps.SetCompletedLevels(0);
            NoInternetIcon.SetActive(true);
        }

        ps.SetPlayerName(PlayerSession.Instance.GetCurrentPlayer());
        ps.PlayerID = PlayerSession.Instance.currentYipliConfig.playerInfo.playerId;

        if (ps.GetPlayerName().Length > 10)
        {
            playerName.text = ps.GetPlayerName().Substring(0, 9);
        }
        else
        {
            playerName.text = ps.GetPlayerName();
        }

        pointScore.text = ps.GetCoinScore().ToString();

        ps.TimePlayed = 0;
    }
Пример #2
0
    public void TroubleShootGameLib()
    {
        if (currentYipliConfig.troubleshootingPOSTDone)
        {
            return;
        }

        if (currentYipliConfig.gameId == null)
        {
            return;
        }

        if (YipliHelper.GetGameClusterId() != 0)
        {
            return;
        }
        if (!YipliHelper.checkInternetConnection())
        {
            return;
        }

        if (FindObjectOfType <MatSelection>() == null)
        {
            return;
        }
        if (FindObjectOfType <PlayerSelection>() == null)
        {
            return;
        }

        // activate driver troubleshoot module here

        currentYipliConfig.troubleshootingPOSTDone = true;
    }
Пример #3
0
 public void GoToStore()
 {
     if (YipliHelper.checkInternetConnection())
     {
         SceneManager.LoadScene("Store");
     }
     else
     {
         NoInternetIcon.SetActive(true);
     }
 }