mirror of
https://github.com/alee14-projects/Project-Sandbox.git
synced 2025-01-22 17:02:12 -05:00
Discord is no longer required to run the game
This commit is contained in:
parent
130b3e7931
commit
0a843187ae
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue