所以,我创建了一个包含2个对象的列表。我想确保它们都更新。更新列表中的每个项目
public static void Update(GameTime gameTime)
{
Player.Update(gameTime);
Seagull.Update(gameTime);
foreach (Seagull seagull in seagulls)
{
seagull.Update(gameTime);//Here is where the error is.
}
}
这是错误观察Error
帮助将不胜感激。
有什么错误到底是什么? – juharr
我已更新错误屏幕截图的问题。 – Adam
[这个问题](http://stackoverflow.com/questions/1100009/member-method-cannot-be-accessed-with-an-instance-reference)有帮助吗?这是Google的第一个结果,并且表明你的'Seagull.Update()'方法是静态的。也许你不是说那种方法是静态的? – Jacob