// 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 (); }
void Start() { f = new FbHolder(); }