#pragma strict
if(Input.GetKeyDown(KeyCode.Alpha1)||Input.GetKeyDown(KeyCode.Keypad1)){
Application.LoadLevel(1);
}
if(Input.GetKeyDown(KeyCode.Alpha2)||Input.GetKeyDown(KeyCode.Keypad2)){
Application.Quit;
}
And I get BCE0034. Why?
#pragma strict
if(Input.GetKeyDown(KeyCode.Alpha1)||Input.GetKeyDown(KeyCode.Keypad1)){
Application.LoadLevel(1);
}
if(Input.GetKeyDown(KeyCode.Alpha2)||Input.GetKeyDown(KeyCode.Keypad2)){
Application.Quit;
}
And I get BCE0034. Why?
Application.Quit();
I'm not using an FPS controller, my game is 3rd person based off the 3rd person standard Unity pack. To show pause I call: PauseMenuPanel.SetActive(true); Cursor.lockState = CursorLockMode.None; To hide I call: PauseMenuPanel.SetActive(false); Cursor.lockState = CursorLockMode.Locked; Clicking within the PauseMenuPanel hides the cursor but keeps the panel shown.
– SamJ