I try to use GameSparksAvailable but that event never triggered when GS is available or not.
I dont know if im using correctly.
void Start()
{
GameSparksApi.GameSparksAvailable += HandleGameSparksAvailable;
}
public void HandleGameSparksAvailable(object sender, GameSparks.GameSparksAvailabilityEventArgs e)
{
Debug.Log("GS:HandleGameSparksAvailable: ");
if (e.available)
{
//what is meaning of the bool parameter ???
new DeviceAuthenticationRequest()
.Send((response) =>
{
if (response.HasErrors)
{
} else
{
UserManager.Instance.UpdateInformation(false);
}
});
}
}
Thank
Best Answer
C
Customer Support
said
over 5 years ago
Hey Luis,
So you want to authenticate the user as soon as gamesparks comes available? Is that right? You actually dont need to send availability event into the delegate, as it is happy to accept a bool, as in the code below...
That should work for you. If you are still having problems you should check your Gamesparks SDK settings in unity and maybe run the test-scene to see if you get the GS Available message there.
Hope that helps, - Sean
1 Comment
Customer Support
said
over 5 years ago
Answer
Hey Luis,
So you want to authenticate the user as soon as gamesparks comes available? Is that right? You actually dont need to send availability event into the delegate, as it is happy to accept a bool, as in the code below...
That should work for you. If you are still having problems you should check your Gamesparks SDK settings in unity and maybe run the test-scene to see if you get the GS Available message there.
Luis Vieira
Hi,
I try to use GameSparksAvailable but that event never triggered when GS is available or not.
I dont know if im using correctly.
Thank
So you want to authenticate the user as soon as gamesparks comes available? Is that right?
You actually dont need to send availability event into the delegate, as it is happy to accept a bool, as in the code below...
That should work for you.
If you are still having problems you should check your Gamesparks SDK settings in unity and maybe run the test-scene to see if you get the GS Available message there.
Hope that helps,
- Sean
Customer Support
So you want to authenticate the user as soon as gamesparks comes available? Is that right?
You actually dont need to send availability event into the delegate, as it is happy to accept a bool, as in the code below...
That should work for you.
If you are still having problems you should check your Gamesparks SDK settings in unity and maybe run the test-scene to see if you get the GS Available message there.
Hope that helps,
- Sean
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2486 topics