Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (Singleton == this)
     {
         DiscordAPI.UnregisterEventsHandler(this);
         DiscordAPI.Stop();
         Singleton = null;
     }
 }