我是Unity2019版本,2019vs平臺的c#語言
這樣寫的代碼
可是在Unity上面運行的時候,不是A鍵輸出,只要一運行就瘋狂輸出。求解決!

public class NewBehaviourScript : MonoBehaviour
{
int a = 123;
int b = 220;
string c = "新冠肺炎";
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.A)) ;
{
Debug.Log(c);
}
}
uj5u.com熱心網友回復:
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/15650.html
標籤:Unity3D
上一篇:unity錯誤求助!
下一篇:unity萌新求教,關于2d光源
