Home > other >  Unity small white help, KeyCods problem
Unity small white help, KeyCods problem

Time:09-27

I am Unity2019 version, vs 2019 platform of the c # language
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: