Exemplo n.º 1
0
 private void OnEnable()
 {
     Log.Info("[Discord] Init");
     handlers = new DiscordRpc.EventHandlers
     {
         readyCallback = ReadyCallback
     };
     handlers.disconnectedCallback += DisconnectedCallback;
     handlers.errorCallback        += ErrorCallback;
     handlers.joinCallback         += JoinCallback;
     handlers.requestCallback      += RequestCallback;
     DiscordRpc.Initialize(APPLICATION_ID, ref handlers, true, "");
 }
Exemplo n.º 2
0
        void OnEnable()
        {
            Log.Info("Discord: init");
            handlers = new DiscordRpc.EventHandlers();
            handlers.readyCallback         = ReadyCallback;
            handlers.disconnectedCallback += DisconnectedCallback;
            handlers.errorCallback        += ErrorCallback;
            handlers.joinCallback         += JoinCallback;
            handlers.spectateCallback     += SpectateCallback;
            handlers.requestCallback      += RequestCallback;
            DiscordRpc.Initialize(applicationId, ref handlers, true, optionalSteamId);

            ShowingWindow = false;
        }