-2
我下面就如何使空间游戏斯威夫特一个tutorial,当我输入下面的代码它说:“没有解决identifier'lastYieldInterval的使用”使用未解决的标识符“lastYieldIdentifier”
func updateWithTimeSinceLastUpdate(timeSinceLastUpdate: CFTimeInterval)
{
lastYieldInterval += timeSinceLastUpdate
if lastYieldInterval > 1
{
lastYieldInterval = 0
addAlien()
}
}
凡定义'lastYieldInterval'? – Larme