Hi all,
I am trying not to use the mouse in my game. My question:
Is there any way I can adjust the value of a GUI slider using the left/right arrow keys?
My code:
void OnGUI ()
{
if(PauseGame.pause==true)
{
hSliderValue = GUI.HorizontalSlider(new Rect(25F, 25F, 600F, 30F), hSliderValue, 0.0F, 10.0F);
if(GUI.Button(new Rect(25,60,600,20), "Press When Finished"))
{
PauseGame.pause = false;
Time.timeScale = 1;
return;
}
}
else if(Time.timeScale ==1){
update();
}
}