예제 #1
0
    public void calculateFinalScore()
    {
        finalScore = time.getTimeMultiplier(packets.getTotalPackets()) * score.getScore();


        int    scoreValue = (int)finalScore;
        string scoreText  = "" + finalScore; // A string representing the score to be shown on the website.
        //int tableID = 0; // Set it to 0 for main highscore table.
        //string extraData = ""; // This will not be shown on the website. You can store any information.

        /*GameJolt.API.Scores.Add(scoreValue, scoreText, tableID, extraData, (bool success) => {
         *  Debug.Log(string.Format("Score Add {0}.", success ? "Successful" : "Failed"));
         * });*/
    }
 public void showCalculation()
 {
     GetComponent <Text>().text = "" + finalScore.getScore() + "  x  " + time.getTimeMultiplier(totalPackets.getTotalPackets());
 }
예제 #3
0
 public void showTimeMultiplier()
 {
     GetComponent <Text>().text = "" + time.getTimeMultiplier(totalPackets.getTotalPackets());
 }