public PlanetaryShield.ViewMode GetNextViewMode(PlanetaryShield.ViewMode currentViewMode) { PlanetaryShield.ViewMode nextViewMode = PlanetaryShield.ViewMode.Full; switch (currentViewMode) { case PlanetaryShield.ViewMode.Full: { nextViewMode = PlanetaryShield.ViewMode.Partial; break; } case PlanetaryShield.ViewMode.Partial: { nextViewMode = PlanetaryShield.ViewMode.Hidden; break; } case PlanetaryShield.ViewMode.Hidden: { nextViewMode = PlanetaryShield.ViewMode.Full; break; } } return(nextViewMode); }
public void ReceiveSettingsFromShield(float radius, float damagePower, int energyConsumption, PlanetaryShield.ViewMode viewMode) { UpdateEnergyConsumptionDisplay(energyConsumption); shieldRadius = radius; shieldPower = damagePower; currentViewMode = viewMode; DisableSlidersTrigger(true); UpdateRadiusValueDisplay(); UpdatePowerValueDisplay(); DisableSlidersTrigger(false); UpdateCurrentViewModeDisplay(); }
public void ViewModeButtonClicked() { currentViewMode = GetNextViewMode(currentViewMode); SendSettings(); UpdateCurrentViewModeDisplay(); }