i'm added test code in GameSparksTestUI
if (GUILayout.Button ("FindMatchRequest", GUILayout.Width (itemWidth), GUILayout.Height (itemHeight))) { new FindMatchRequest() .SetMatchShortCode("MAIN_MCH") .SetSkill(10).Send((response) => { Utility.HandleLog("FindMatchRequest:" + response.JSONString); }); }
when i'm press FindMatchRequest Button GameSparks will be disconnect and auto reconnect
what's wrong with my code?
Hi Satit,
This should be what you need to get going.
new FindMatchRequest()
.SetAction(action)
.SetMatchGroup(matchGroup)
.SetMatchShortCode(matchShortCode)
.SetSkill(skill)
.Send((response) => {
String accessToken = response.GetAccessToken();
String host = response.GetHost();
String matchId = response.GetMatchId();
GSEnumerable<_Player> opponents = response.GetOpponents();
int? peerId = response.GetPeerId();
String playerId = response.GetPlayerId();
int? port = response.GetPort();
GSData scriptData = response.GetScriptData();
});
Thanks,
Liam
Satit Sora
i'm added test code in GameSparksTestUI
when i'm press FindMatchRequest Button GameSparks will be disconnect and auto reconnect
what's wrong with my code?
Hi Satit,
This should be what you need to get going.
new FindMatchRequest()
.SetAction(action)
.SetMatchGroup(matchGroup)
.SetMatchShortCode(matchShortCode)
.SetSkill(skill)
.Send((response) => {
String accessToken = response.GetAccessToken();
String host = response.GetHost();
String matchId = response.GetMatchId();
GSEnumerable<_Player> opponents = response.GetOpponents();
int? peerId = response.GetPeerId();
String playerId = response.GetPlayerId();
int? port = response.GetPort();
GSData scriptData = response.GetScriptData();
});
Thanks,
Liam
Customer Support
Hi Satit,
This should be what you need to get going.
new FindMatchRequest()
.SetAction(action)
.SetMatchGroup(matchGroup)
.SetMatchShortCode(matchShortCode)
.SetSkill(skill)
.Send((response) => {
String accessToken = response.GetAccessToken();
String host = response.GetHost();
String matchId = response.GetMatchId();
GSEnumerable<_Player> opponents = response.GetOpponents();
int? peerId = response.GetPeerId();
String playerId = response.GetPlayerId();
int? port = response.GetPort();
GSData scriptData = response.GetScriptData();
});
Thanks,
Liam
-
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 2485 topics