예제 #1
0
    public override void SetInitialSliderValues()
    {
        base.SetInitialSliderValues();

        if (tiltXSlider)
        {
            tiltXSlider.Value = orbitingBody.GetTiltXPercent();
        }
        if (tiltZSlider)
        {
            tiltZSlider.Value = orbitingBody.GetTiltZPercent();
        }
        if (sizeSlider)
        {
            sizeSlider.Value = orbitingBody.GetSizePercent();
        }
        if (rotationSlider)
        {
            rotationSlider.Value = orbitingBody.GetRotationVelocityPercent();
        }
        if (luminositySlider)
        {
            luminositySlider.Value = orbitingBody.GetLuminosityPercent();
        }
        if (orbitSpeedSlider)
        {
            orbitSpeedSlider.Value = orbitingBody.GetOrbitSpeedPercent();
        }
    }