You can do whatever you want with the points. This is just an example of using the RewardedVideo in conjunction with a variable called “points” that gets saved to Firebase.
Creating a refer system is very easy, you just have to understand the concept in this video.
Have you ever opened an app or video game and seen “Friend Code”? (I think the 3DS has a friend code or something similar). To add a friend, you simply type in the Friend Code. Sometimes you type in a username. It doesn’t matter WHAT the video game calls it, you’re typing in a UNIQUE identifier.
We gave each user a unique userID in this example.
This could easily be a “Friend Code”.
Even though we only used a username and password field in our Sign Up screen, a typical Sign Up screen usually has more than a username and password field. You could add a “Referral” field, in which the user is asked to enter the “Friend Code” of the person that referred them to your app. Both users could then receive 100 points.
It doesn’t matter that the points come from the RewardedVideo component. The points are just numbers that are stored in variables. Points can come from anywhere. As long as you add that variable to Firebase, those users with the specified userID’s will receive the points you give them.
Hope that helps