Im having major trouble with this and i cant seem to figure it out, i have test ads showing perfectly but the reward isnt going through!
void OnEnable()
{
Chartboost.didCompleteRewardedVideo += didCompleteRewardedVideo;
}
public void FREECOIN()
{
Chartboost.cacheRewardedVideo(CBLocation.MainMenu);
if (Chartboost.hasRewardedVideo(CBLocation.MainMenu))
{
Chartboost.showRewardedVideo(CBLocation.MainMenu);
}
else
{
// We don't have a cached video right now, but try to get one for next time
Chartboost.cacheRewardedVideo(CBLocation.MainMenu);
}
}
public void didCompleteRewardedVideo(CBLocation location, int reward)
{
float CoinsFloat = PlayerPrefs.GetFloat("Coins");
PlayerPrefs.SetFloat("Coins", CoinsFloat + 5000);
}
void OnDisable()
{
Chartboost.didCompleteRewardedVideo -= didCompleteRewardedVideo;
}
"FREECOIN" gets called whenever i press a button.
ALSO time scale is set to 0! but ive tested with 0 and 1 and same result!
↧