예제 #1
0
 // 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());
 }
예제 #2
0
 public void Val2SliderChanged()
 {
     //if ((int) val2Slider.value != ship.testVal2)
     pim.CmdChangeTestVal2((int)val2Slider.GetValue());
 }