“Input Button R is not setup” Any help?
function Update (){
if(Input.GetButtonDown("R")){
Application.LoadLevel(0);
}
}
“Input Button R is not setup” Any help?
function Update (){
if(Input.GetButtonDown("R")){
Application.LoadLevel(0);
}
}
You would likely want to use Input.GetKeyDown(Keycode.R) for this. GetButtonDown is set up through Edit>Project Settings>Input, however it is easier to use GetKeyDown in this situation.