[英]C# Error CS1513
I don't understand what is causing a CS1513 error.我不明白是什么导致了 CS1513 错误。 I'm using Microsoft Visual Studio.
我正在使用 Microsoft Visual Studio。
Here's my code:这是我的代码:
using UnityEngine;
using System.Collections;
public class GameStarted : MonoBehaviour {
void GameStartMsg()
{
Debug.Log("Game started!");
}
That's all I see:这就是我所看到的:
The only thing wrong is you need to add a curly brace to the end of your code at line nine.唯一的错误是您需要在第 9 行的代码末尾添加一个花括号。 That will get rid of the error.
这将摆脱错误。 CS1513 error = missing closing bracket.
CS1513 错误 = 缺少右括号。
Please attempt to answer questions yourself.请尝试自己回答问题。
Googling 'error CS1513' lead to this page as the first result - https://msdn.microsoft.com/en-us/library/83ht1k63%28v=vs.90%29.aspx?f=255&MSPPError=-2147217396谷歌搜索“错误 CS1513”导致此页面作为第一个结果 - https://msdn.microsoft.com/en-us/library/83ht1k63%28v=vs.90%29.aspx?f=255&MSPPError=-2147217396
Grant Winney's comment is correct, missing brace.格兰特温尼的评论是正确的,缺少括号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.