求问以下c#脚本怎么写
Create a new C# script called HelloWorld that every frame increments an int variable by 1 in the Update() method and prints it to the console using Debug.Log(), starting with 0.
• Attach this to script Empty2 and press the Play button to see the output in the Console window.
创建一个名为HelloWorld的新C#脚本,该脚本在Update()方法中每帧将一个int变量加1,然后使用Debug.Log()从0开始将其打印到控制台。
•将其附加到脚本Empty2,然后按“播放”按钮 在控制台窗口中查看输出。