Discord is no longer required to run the game

This commit is contained in:
Andrew Lee 2020-12-05 14:41:33 -05:00
parent 130b3e7931
commit 0a843187ae
Signed by: andrew
GPG key ID: 4DCE67C47836D125

View file

@ -1,5 +1,4 @@
using UnityEngine;
using UnityEngine.Serialization;
public class DiscordController : MonoBehaviour
{
@ -14,7 +13,7 @@ public class DiscordController : MonoBehaviour
// Use this for initialization
void Start () {
System.Environment.SetEnvironmentVariable("DISCORD_INSTANCE_ID", "0");
Discord = new Discord.Discord(applicationID, (System.UInt64)global::Discord.CreateFlags.Default);
Discord = new Discord.Discord(applicationID, (System.UInt64)global::Discord.CreateFlags.NoRequireDiscord);
var activityManager = Discord.GetActivityManager();
var activity = new Discord.Activity
{