Question by
codedbythet · May 03, 2020 at 10:38 PM ·
androidbutton
Android Button Help
I followed some directions on making my buttons work for android. But, when I move back, I am missing something and I cannot find the fix. get the following errors.
Failed to create device file: 3 The system cannot find the path specified.
and
Assets\Scripts\MainMenu.cs(30,16): error CS1501: No overload for method 'Button' takes 1 arguments
public void PlayGame() {
if(GUI.Button("PlayButton")) {
Time.timeScale = 1f;
SceneManager.LoadScene(playGameLevel);
}
}
public void CreditsGame() {
if(GUI.Button("CreditsButton")) {
Time.timeScale = 1f;
SceneManager.LoadScene(creditsLevel);
}
}
public void QuitGame() {
if(GUI.Button("QuitButton")) {
Time.timeScale = 1f;
Application.Quit();
}
}
}
Please help
Comment