示例#1
0
    // Update is called once per frame
    void Update()
    {
        if (getScoreboard.dataReceived)
        {
            getScoreboard.dataReceived = false;
            leaderboard.CreateLeaderboard(contentTrans, ScoreboardInfo.info.scoreboard.Length, thisPlayerObj, true, 0, thisPlayerOverallObj, ScoreboardInfo.infoHolder[lastPressed]);

            //objProgressCircle.SetActive(false);
        }
    }
示例#2
0
    void Start()
    {
        long timeToNextGame = GameInfoSynonym.info.game_start - GameInfoSynonym.info.current_time;

        scrTimer.Activate(timeToNextGame);
        GameSettings.MyDebug("When is next game really: " + timeToNextGame);
        GameSettings.MyDebug("When I think it is: " + GameInfoSynonym.info.show_results_duration_ms);

        prefabPlayerHeight = prefabPlayer.GetComponent <RectTransform>().rect.height;

        leaderboard.CreateLeaderboard(contentTrans, ScoreboardInfo.info.scoreboard.Length, thisPlayerObj, false, GameInfoSynonym.info.max_round_score * GameInfoSynonym.info.number_of_rounds, null, ScoreboardInfo.info);
    }
 // Update is called once per frame
 void Update()
 {
     if (getScoreboard.dataReceived)
     {
         GameSettings.MyDebug("CALLED REFRESH BOOM");
         getScoreboard.dataReceived = false;
         thematicNameText.text      = ScoreboardInfo.info.thematic_name;
         leaderboard.CreateLeaderboard(contentTrans, ScoreboardInfo.info.scoreboard.Length, thisPlayerObj, true, 0, thisPlayerOverallObj, ScoreboardInfo.infoHolder[lastPressed]);
         //objProgressCircle.SetActive(false);
         //textBtn.text = GameInfoThematic.info.game_type.ToUpper();
     }
 }