statementCounter][0]); // this doesn't work"Uncaught typeError: Cannot read property of '0' of undefined"} 我不明白的是为什么最底层的不能工作我推入secularScores的数组工作得很好,我可以从中获取任何特定的对象</e
我从Achiv类调用位于成就脚本中的getName()方法中的ArrayList中的printAchiv()方法,它会抛出一个错误。下面是我在行Debug.Log("Achiv "+i+": "+ achivList[i].getName());上得到的错误消息
可以找到object' does not contain a definitionfor getName‘并且没有扩展方法