void Start() { Instance = this; // AdmobAd.Instance().LoadInterstitialAd(true); if (AdmobIntegration.THIS != null) { AdmobIntegration.THIS.RequestInterstitial(); } // AdmobAd.Instance().LoadInterstitialAd(true); // audio.PlayClipAtPoint(ambient, new Vector3(5, 1, 2)); //audio.loop = true; // if(DisplayMetricsAndroid.WidthPixels>700){ // hd = true; // } stageTemp = 1; RandomizeWaitTime(); score = 0; if (PlayerPrefs.GetInt("noSound") == 1) { noSound = true; } // if(PlayerPrefs.GetInt("arcade")==1){ arcadeMode = true; highScore = PlayerPrefs.GetInt("scoreArcade");} // if(PlayerPrefs.GetInt("arcade")==0){ arcadeMode = false; highScore = PlayerPrefs.GetInt("score");} GamePlay.Instance.GameStatus = GameState.MainMenu; // GameObject.Find("GUIHighscore").GetComponent<GUIText>().text = "High Score: " + highScore+""; CheckBoosts(); }
void Start() { Instance = this; score = 0; arcadeMode = false; GamePlay.Instance.GameStatus = GameState.BlockedGame; }