Write the code
But when running on the Unity, is not A key output, as long as A running crazy output, please solve!
Public class NewBehaviourScript: MonoBehaviour
{
int a=123;
Int b=220;
String c="new crown pneumonia";
//Start is called before the first frame update
Void the Start ()
{
}
//Update is called once per frame
Void the Update ()
{
If (Input. GetKeyDown (KeyCode. A));
{
The Debug Log (c);
}
}
CodePudding user response: