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) public void RequestCallback(DiscordRpc.JoinRequest request)
{ {
++callbackCalls; ++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); onJoinRequest.Invoke(request);
} }

View file

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

View file

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