public void SetSlidersOnNewEquip() { Slider slider; StatPack.StatType type; type = StatPack.StatType.Acceleration; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.Armor; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.Grip; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.Health; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.Nitro; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.TopSpeed; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); type = StatPack.StatType.Weight; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); slider.transform.Find("Fill Area").Find("Fill").GetComponent <Image>().color = new Color(1, 0, 1, 0.3f); damageSliders.SetSliders(); }
public void SetSlidersOnOpen() { Slider slider; StatPack.StatType type; type = StatPack.StatType.Acceleration; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.Armor; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.Grip; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.Health; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.Nitro; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.TopSpeed; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); type = StatPack.StatType.Weight; slider = PickSlider(type); slider.value = SliderPosition(GarageStats.MinStatValue(type), GarageStats.MaxStatValue(type), GarageStats.CurrentStatValue(type)); damageSliders.SetSliders(); }