我把Timer放在我的Sprite Kit Game上。然后出现此错误消息

时间:2015-01-08 14:50:15

标签: sprite-kit

-(void)update:(NSTimeInterval)currentTime {
    if(_gameState == STARTING) {
        _startedTime = currentTime;
        _gameState = PLAYING;
    }

    if(_gameState == PLAYING) {
        int timeLeftRounded = ceil(LEVEL_TIME+(_startedTime - currentTime));
        timerLabel.text = [NSString stringWithFormat:@"Time: %d", timeLeftRounded];

    }
}
行中的

错误

int timeLeftRounded = ceil(LEVEL_TIME+(_startedTime - currentTime)); 

错误消息说我应该删除最后一个)。但它不对,仍然得到错误。

0 个答案:

没有答案