private void ActivateAllPlanetParticleFX() { int count = this.planetsWithEvent.Count; for (int i = 0; i < count; i++) { PlanetFXState currentPlanetFXState = this.planetsWithEvent[i].CurrentPlanetFXState; if (currentPlanetFXState != PlanetFXState.AllFXOff) { if (currentPlanetFXState != PlanetFXState.RingsOff) { this.ActivatePlanetParticleFX(this.planetsWithEvent[i]); } else { this.ActivatePlanetParticleFX(this.planetsWithEvent[i]); this.DeactivatePlanetRings(this.planetsWithEvent[i]); } } else { this.DeactivatePlanetParticleFX(this.planetsWithEvent[i]); } } }
public Planet(PlanetVO vo) { this.THRASH_TIME = GameConstants.GALAXY_PLANET_POPULATION_UPDATE_TIME; this.THRASH_DELTA_PERCENT = GameConstants.GALAXY_PLANET_POPULATION_COUNT_PERCENTAGE; this.VO = vo; this.thrashTimer = 0f; this.ThrashingPopulation = 0; this.thrashValue = 0; this.IsCurrentPlanet = false; this.CurrentBackUIShown = false; this.FriendsOnPlanet = new List <SocialFriendData>(); this.CurrentPlanetFXState = PlanetFXState.Unknown; this.tournamentState = TimedEventState.Invalid; }