That’s it! You have successfully setup the standard Signup method!
Step 5 – Signup callbacks to handle actions
Signup Callbacks
Callbacks, if implemented, are called automatically. All you have to do is put the code inside callbacks.
After signing up a user in, you would want to perform some tasks. Those tasks may include, but not limited to:
Changing scenes
Perform other game related tasks.
All this can be accomplished using the signup callbacks gamergraph provides.
To implement signup callback:
Create a C# script, and open it in any code editor.
Instead of monobehaviour, extend the script form GamerGraph_Plugin.GamerGraph_Callbacks.GG_LoginSignupCallbacks
Implement the following callbacks for login as shown below.
Attach this script to any gameobject in your scene!
Figure 5 : Signup callbacks
Callback explanation: (Signup)
The first callback is the Pre signup callback. Anything you want to do before a signup event happens, put its code inside this callback.
The second callback is the Post signup callback. Put the implementation code of all the instructions that must happen after signup inside this callback.
The third callback is the failed signup callback. If a signup fails, the code that handles it must be placed inside this callback.
Note: Since zero friction flow does not require any types of credentials, you can still implement these same callbacks for login in a zero-friction flow scenario and handle things as the same.