Update C# wrapper with visual C# compatible version (#126)
- Custom serializer to fix utf-8 strings in C#
This commit is contained in:
parent
578eb6de7c
commit
4055565147
2 changed files with 148 additions and 18 deletions
|
@ -11,7 +11,7 @@ public class DiscordJoinRequestEvent : UnityEngine.Events.UnityEvent<DiscordRpc.
|
|||
|
||||
public class DiscordController : MonoBehaviour
|
||||
{
|
||||
public DiscordRpc.RichPresence presence;
|
||||
public DiscordRpc.RichPresence presence = new DiscordRpc.RichPresence();
|
||||
public string applicationId;
|
||||
public string optionalSteamId;
|
||||
public int callbackCalls;
|
||||
|
@ -33,7 +33,7 @@ public class DiscordController : MonoBehaviour
|
|||
|
||||
presence.details = string.Format("Button clicked {0} times", clickCounter);
|
||||
|
||||
DiscordRpc.UpdatePresence(ref presence);
|
||||
DiscordRpc.UpdatePresence(presence);
|
||||
}
|
||||
|
||||
public void RequestRespondYes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue