|
if(Input.mousePosition.x<playerPosition.x)//第二 三象限(请注意这里二和三之间有一个空格就报出下面的错,请你试试是不是也有这样的错)
{
signX=-1;
signY=-1;
}
为了方便大家搜索,再把文本错粘贴上来:如下
Assets/scripts/PlayerController.cs(60,18): error CS1519: Unexpected symbol `if' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(60,44): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(63,42): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(63,53): error CS1519: Unexpected symbol `,' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(63,66): error CS1519: Unexpected symbol `0' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(64,46): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(64,54): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(66,30): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(67,36): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(67,48): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
Assets/scripts/PlayerController.cs(69,18): error CS8025: Parsing error
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|