public override void Start() { m_menuObject = GetComponent <MenuObject>(); m_sliderScript = GetComponent <SettingSlider>(); m_sliderScript.SetValue(SoundObject.Instance.Param.BGMVolume * 0.01f); base.Start(); }
public override void Start() { m_menuObject = GetComponent <MenuObject>(); m_sliderScript = GetComponent <SettingSlider>(); m_sliderScript.SetValue(AudioListener.volume); base.Start(); }
// initialize panel with component data private void InitPanel(Component component) { int i; // set header header.SetName(component.componentName); // set buttons i = 0; foreach (FlatButton button in buttons) { button.SetButtonText(component.buttonsName[i]); button.SetButtonState(component.buttonsState[i]); button.SetActive(component.buttonsIsActive[i]); i++; } // set value bar i = 0; foreach (ValueBar bar in bars) { bar.SetName(component.valueBarsName[i]); bar.SetUnit(component.valueBarsUnit[i]); bar.SetValue(component.valueBarsValue[i]); bar.SetMaxValue(component.valueBarsMaxValue[i]); bar.SetMinValue(component.valueBarsMinValue[i]); bar.SetActive(component.valueBarsIsActive[i]); i++; } // graph title plotter.SetTitle(component.componentName); // setting slider slider.SetHead(component.settingBarName); slider.SetUnit(component.settingBarUnit); slider.SetMaxValue(component.settingBarMaxValue); slider.SetMinValue(component.settingBarMinValue); slider.SetValue(component.settingBarValue); slider.SetActive(component.settingBarIsActive); // power slider power.SetPowerState(component.powerState); power.SetActive(component.powerIsActive); // 3d model if (model) { Destroy(model); } model = Instantiate(component.model, stage.transform, false); model.transform.localPosition = new Vector3(0, 0, 1000); model.SetActive(true); }
public override void OnStart() { m_sliderScript.SetValue(SoundObject.Instance.Param.BGMVolume * 0.01f); m_menuObject.SetSubmitColor(); }
public override void OnStart() { m_sliderScript.SetValue(AudioListener.volume); m_menuObject.SetSubmitColor(); }