예제 #1
0
    IEnumerator GameOverPart2()
    {
        yield return(new WaitForSeconds(2.0f));

        float highscore = float.Parse(BLINDED_SaveData.GetValue("playerBestTime", "0")) / 100.0f;

        comp_gameOver.Show(TimerDisplay.MakeTimeString(time_duration), TimerDisplay.MakeTimeString(highscore), extra_Life != null);

        if (time_duration > highscore)
        {
            BLINDED_SaveData.SetValue("playerBestTime", Mathf.FloorToInt(time_duration * 100.0f).ToString());
        }
    }
    ///<summary>Called in the Load up scene by LoadUpScene_Controller</summary>
    public override void LoadUp_Init(CallBack callback)
    {
        base.LoadUp_Init(callback);

        instance = this;

        allData = new Dictionary <string, object>();
        allData.Add("emptyObj", "0");

        GetData();

        callback();
    }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        comp_leaderboard = GetComponent <FacebookFriendLeaderboard>();

        Text_bestscore.text = TimerDisplay.MakeTimeString(float.Parse(BLINDED_SaveData.GetValue("playerBestTime", "0")) / 100.0f);
    }