var powerSlider: UISlider; //to get and adjust the slider value
private var sliderInc: float = 0.003335;
function OnMouseUpAsButton()
{
if(gameObject.name == "Power_Button_Up") //if the <Up_Button> is pressed then increase the slider value...
{
powerSlider.sliderValue = powerSlider.sliderValue + sliderInc;
print(gameObject.name + "s power is: " + GameObject.Find("Power_Slider").GetComponent(PowerSlider).power);
}else //else the down button was pressed so decrease the slider value...
{
powerSlider.sliderValue = powerSlider.sliderValue - sliderInc;
print(gameObject.name + "s power is: " + GameObject.Find("Power_Slider").GetComponent(PowerSlider).power);
}
}