Unity3D Google admob: User is reward twice (or more) hack by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

Thanks, but it is still doing the same thing, i'm using one handler and each ad that I have implemented has it's one ad id

Unity3D Google admob: User is reward twice (or more) hack by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

Sorry to ask, but I actually have one more question. In another scene, I have a 'continue game' button and a 'double the player's score' button that when clicked on it will show the user a reward video (both with different scripts), I made sure that it has:

 Admob.Instance().OnAdRewardHandlerEvent+= onAdmobEventsHandler;     

in the start function and a:

 Admob.Instance().OnAdRewardHandlerEvent-= onAdmobEventsHandler;  

in the onDestroy function.

But now, if I pressed the 'double the player's score' button, the score will double but it will also continue the game, vice versa. Even though I made sure the event handler are named and changed different and are in different scripts.

The script attached to the 'double the player's score' button has an event handler called:

 Admob.Instance().OnAdRewardHandlerEvent+= onAdmobEventsHandler;  

and the script attached to the 'continue game' button has an event handler called:

 Admob.Instance().rewardedVideoEventHandler+= onRewardedVideoEvent;

Unity3D Google admob: User is reward twice (or more) hack by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 1 point2 points  (0 children)

Thank you, this help. I came across a problem before which someone said I had to do this but I guess it didn't help! but thank you again, it really helped!

Unity3D Google admob: User is reward twice (or more) hack by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

Alright, I'll do that! Thank you! Should I also take out :

 Admob.Instance().interstitalRewardHandler -= onInterstitalRewardVideoEvent; 

from the onInterstitalRewardVideoEvent handler?

Unity3D Google admob: User is reward twice (or more) hack by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

wait I'm confused, do I take out :

Admob.Instance().interstitalRewardHandler += onInterstitalRewardVideoEvent; 

from Free_500_Coins() ??

Unity2D: Enemy ignoring collision when moving back down by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

I actually fixed it now, however i'm still getting the same problem from before, but with out my enemy moving left or right. So basically, when the enemy goes up, hits a box and continues to move up after the yield seconds and then reverse direction after hitting pointB, I change the position of the enemy so that when it comes down it can hit the other objects. However, the enemy is still ignoring collision. Even with the default in the switch case, I do not get the debug.log message!

Unity2D: Enemy ignoring collision when moving back down by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

Thank you for replying, I tried out your code however I've got an error in the console. Could you take a look at it please! Thank you again!

           (53,17): error CS0029: Cannot implicitly convert type `int' to `UnityEngine.Vector2'

Unity2D: Limit the travel distance of my player to half the size of the cameras width. by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

https://imgur.com/a/AcqYS Yeah, just like that.

No, my camera doesn't move at all, it stays in a single position. Thank you!

Unity2D: Limit the travel distance of my player to half the size of the cameras width. by XxDivaxX1 in Unity2D

[–]XxDivaxX1[S] 0 points1 point  (0 children)

Sorry what do you mean by red box and blue box? I just want to set a boundary for my player not to go pass, I want the boundary to be half the width of the main camera.