当我的奖励视频结束时,它不会给用户硬币.......为什么?

When my reward video finishes it doesn't give the user the coins.......Why?

我正在使用 Chartboost 奖励视频,当视频播放完毕后,我想给用户 200 个硬币。我在我的 GameViewController 中添加了委托函数 didCompleteRewardedVideo,但它不会在视频看完后给用户 200 个硬币。我究竟做错了什么?

     func didCompleteRewardedVideo(location: String!, withReward reward: Int32) {

    println("REWARDS!!!!")
    gameScene.coins += 200
    gameScene.coinLabel.text = String(gameScene.coins)
}

你正在调用你的委托函数 GameViewController 而不是将你的函数调用到你的硬币所在的 GameScene 中。它会添加并保存它。