コード例 #1
0
ファイル: MenuManager.cs プロジェクト: dgopena/StopTheBombs
    //called upon entering the menu, to update the wait time of the play chances through a rest call
    private void UpdateTimesCall()
    {
        timeText.gameObject.SetActive(false);

        //we check if player is already cleared to play
        if (PlayerPrefs.GetInt("playChances", CurrencySettings.instance.maxPlayChances) == CurrencySettings.instance.maxPlayChances)
        {
            playsText.text = "Play (" + CurrencySettings.instance.maxPlayChances + ")";
            PlayButtonEnabled(true);
            return;
        }

        //else, we need to check time passed. if successful, it will return the server time
        playFabManager.GetCurrentTime();
    }