Update Unity example (also, remove dll, need to do that a better way)

This commit is contained in:
Chris Marsh 2017-11-30 11:24:12 -08:00 committed by Chris Marsh
parent 1a278528a2
commit c053b72f58
4 changed files with 7 additions and 6 deletions

View file

@ -71,7 +71,7 @@ public class DiscordController : MonoBehaviour
public void RequestCallback(DiscordRpc.JoinRequest request)
{
++callbackCalls;
Debug.Log(string.Format("Discord: join request {0}: {1}", request.username, request.userId));
Debug.Log(string.Format("Discord: join request {0}#{1}: {2}", request.username, request.discriminator, request.userId));
onJoinRequest.Invoke(request);
}

View file

@ -55,6 +55,7 @@ public class DiscordRpc
{
public string userId;
public string username;
public string discriminator;
public string avatar;
}

View file

@ -653,7 +653,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
presence:
state: Button clicking
details:
details: Best game ever
startTimestamp: 0
endTimestamp: 0
largeImageKey: stable-large
@ -663,10 +663,10 @@ MonoBehaviour:
partyId: abcdefg
partySize: 1
partyMax: 10
matchSecret:
joinSecret:
spectateSecret:
instance: 0
matchSecret: match_secret
joinSecret: join_secret
spectateSecret: spectate_secret
instance: 1
applicationId: 345229890980937739
optionalSteamId:
callbackCalls: 0