Exemplo n.º 1
0
    // Use this for initialization


    void Start()
    {
        Advertisement.Initialize("96242");

        f = new FbHolder();

        score     = PlayerPrefs.GetFloat("Score", 0f);
        bonus     = PlayerPrefs.GetFloat("Bonus");
        bestscore = PlayerPrefs.GetFloat("best", 0f);
        if (score > bestscore)
        {
            bestscore = score;
            PlayerPrefs.SetFloat("best", bestscore);
        }

        SetScore(bestscore);

        StartCoroutine(ShowAds());
        //QueryScores ();
    }
Exemplo n.º 2
0
 void Start()
 {
     f = new FbHolder();
 }