找回密码
 立即注册
楼主: oscarlew

[脚本] MonoDevelop中一个空格惹的祸!!

[复制链接]
发表于 2013-4-5 09:21 | 显示全部楼层 |阅读模式
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


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
发表于 2013-4-5 15:25 | 显示全部楼层
删了 重新 输入一遍也是这毛病吗
 楼主| 发表于 2013-4-5 16:39 | 显示全部楼层
没有试过,我就知道,当中间有空格的时候就报这样的错,你遇到过吗?不知道怎么会有这样的问题。
我感觉这些都是小毛病,但是就是阻挡我继续往下编程,小米,你给一个好的建议吧1!谢谢先!!!
发表于 2017-3-8 12:04 | 显示全部楼层
很不错
发表于 2017-3-8 12:23 | 显示全部楼层
楼主是超人
发表于 2017-3-8 12:28 | 显示全部楼层
好帖就是要顶
发表于 2017-3-8 12:16 | 显示全部楼层
真心顶
发表于 2017-3-8 11:55 | 显示全部楼层
说的非常好
发表于 2017-3-22 13:49 | 显示全部楼层
楼主是超人
发表于 2017-3-22 13:42 | 显示全部楼层
好帖就是要顶
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-11-23 21:14 , Processed in 0.186729 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表