void Start(){ // move the banner to the top bannerAd.SetPosition(AdPosition.Top); int activeIndex = data.ActiveEnvironment; // show only the selected particle system and // skybox RenderSettings.skybox = skyboxes[activeIndex]; for(int i = 0; i < particles.Count; i++){ particles[i].SetActive(i==activeIndex); } // make sure that the gameover text is hidden gameOverText.gameObject.SetActive(false); // get the stopwatch ready startTimer = false; stopWatch = 0.00f; // increase the games played count data.showAdCountdown-=2; PlayerPrefs.SetInt("played_euro",++data.gameStatsEuro[0]); PlayerPrefs.SetInt("showAd",data.showAdCountdown); PlayerPrefs.SetInt("showAchievment",--data.showAchievementCountdown); //start the game StartCoroutine(FadeInScene()); }
void Start() { bannerAd.SetPosition(AdPosition.Bottom); swipeController.activeItem = data.ActiveEnvironment; // Select the Google Play Games platform as our social platform implementation GooglePlayGames.PlayGamesPlatform.Activate(); if (PlayerPrefs.GetInt("logonStatus") == 1 && loginState == GPLoginState.loggedout && !Social.localUser.authenticated) { Social.localUser.Authenticate(OnAuthCB); //sign user in automatically } if (data.userWantsAchievements == 0) { GameObject otherGO = GameObject.Find("Leaders"); MenuButtonController button = (MenuButtonController)otherGO.GetComponent(typeof(MenuButtonController)); if (button != null) { button.disabled = true; } } }