Beispiel #1
0
    /// <summary>
    /// Saves the score.
    /// </summary>
    /// <param name="score">Score.</param>
    public static void saveScore(float score)
    {
        float _value = loadScore();

        Debug.Log(_value + "::" + score);

        if (score >= _value)
        {
            SaveSystem.saveFloat(GameTimeController.BEST_TIME_KEY, score);

            GPGController.instance.StartCoroutine(GPGController.submitScore(score));

            GameObject.Find("T").GetComponent <TextMesh>().text = "submit";
        }
        else
        {
            GameObject.Find("T").GetComponent <TextMesh>().text = "Denied";
        }
    }
Beispiel #2
0
    private static void playSynchronization()
    {
        int _value = SaveSystem.loadInt(GameTimeController.BEST_TIME_KEY);

        GPGController.instance.StartCoroutine(GPGController.submitScore(_value));
    }