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
删了 重新 输入一遍也是这毛病吗 没有试过,我就知道,当中间有空格的时候就报这样的错,你遇到过吗?不知道怎么会有这样的问题。
我感觉这些都是小毛病,但是就是阻挡我继续往下编程,小米,你给一个好的建议吧1!谢谢先!!! 很不错 楼主是超人 好帖就是要顶 真心顶 说的非常好 楼主是超人 好帖就是要顶
页:
[1]