oscarlew 发表于 2013-4-5 09:21

MonoDevelop中一个空格惹的祸!!

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

删了 重新 输入一遍也是这毛病吗

oscarlew 发表于 2013-4-5 16:39

没有试过,我就知道,当中间有空格的时候就报这样的错,你遇到过吗?不知道怎么会有这样的问题。
我感觉这些都是小毛病,但是就是阻挡我继续往下编程,小米,你给一个好的建议吧1!谢谢先!!!

ulovego78 发表于 2017-3-8 12:04

很不错

贱丨人 发表于 2017-3-8 12:23

楼主是超人

xiaosi1278 发表于 2017-3-8 12:28

好帖就是要顶

wk8981018 发表于 2017-3-8 12:16

真心顶

tapdole 发表于 2017-3-8 11:55

说的非常好

wtx412 发表于 2017-3-22 13:49

楼主是超人

sain102210 发表于 2017-3-22 13:42

好帖就是要顶
页: [1]
查看完整版本: MonoDevelop中一个空格惹的祸!!