// these are called when the values of the GUI objects change public void Val1SliderChanged() { // only update when we need to (this method is also called when a script // updates the value of the slider (i.e., OnValChanged) //if ((int) val1Slider.value != ship.testVal1) pim.CmdChangeTestVal1((int)val1Slider.GetValue()); }
public void Val2SliderChanged() { //if ((int) val2Slider.value != ship.testVal2) pim.CmdChangeTestVal2((int)val2Slider.GetValue()); }