Пример #1
0
 private void SetupWithPlanet(PlanetInfo planet)
 {
     titleText.text = string.Format(LocalizationObj.GetString("fmt_fly2"), LocalizationObj.GetString(planet.LocalData.name));
     UpdateTimerText(planet);
     adButton.Activate();
     adButton.SetListener(() => {
         Services.AdService.WatchAd("SpeedUpPlanet", () => {
             planet.ApplySpeedMult();
         });
         Sounds.PlayOneShot(SoundName.click);
     });
     planetIds.ForEach(pi => {
         if (pi.planetId == planet.Id)
         {
             pi.icon.Activate();
         }
         else
         {
             pi.icon.Deactivate();
         }
     });
 }