Skip to content

Commit

Permalink
Discord fix (RE-SS3D#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamteapot422 authored Jan 2, 2023
1 parent 5a785cc commit 2145b58
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Assets/Scripts/SS3D/Core/ApplicationStateManager.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Coimbra;
using DG.Tweening;
using SS3D.Data;
using UDiscord;
Expand Down Expand Up @@ -34,8 +35,14 @@ private void Awake()

private void InitializeSubsystems()
{
DiscordManager.Initialize();

if (EnableDiscordIntegration)
{
DiscordManager.Initialize();
}
else
{
FindObjectOfType<DiscordManager>().Destroy();
}
Database.Icons.PreloadAssets();
}

Expand Down

0 comments on commit 2145b58

Please sign in to comment.