Example #1
0
 void Start()
 {
     // Load the game
     GamePersistence.Load();
     //GamePersistence.gameData.highestLevel = LevelManager.levels.Length;
     // Set the level text
     levelText.text = "Level " + GamePersistence.gameData.level;
     // Initialize ads
     AdsController.Initialize();
     // Show banner ad
     AdsController.ShowBannerAd();
 }
 void Start()
 {
     // Load data
     GamePersistence.Load();
     // Initialize GPGS
     GPGSController.Initialize();
     // Initialize ads
     AdsController.Initialize();
     // Display the banner ad
     AdsController.ShowBannerAd();
     // Change the sound button image accordingly
     soundButtonImage.sprite = GamePersistence.gameData.muted ? soundOffSprite : soundOnSprite;
     // Disable GPGS login is necessary
     if (GamePersistence.gameData.gpgsLogin)
     {
         gpgsLoginButton.gameObject.SetActive(false);
     }
 }