Exemple #1
0
        public Session(string sessionId, EventTransmitter transmitter)
        {
            Assert.IsFalse(string.IsNullOrEmpty(sessionId), "You must supply a session ID for the EventLogger.Session backend API. EventLogger.Session will be inactive.");

            this.transmitter = transmitter;
            this.sessionId   = sessionId;
        }
Exemple #2
0
    void Awake()
    {
        transmitter = new EventLogger.EventTransmitter(LogToBackend ? BackendTransmitterConfig : null, LogToDisk ? DiskLoggerConfig : null);

        string sessionId = EventLogger.Session.GetNewSessionId();

        session = new EventLogger.Session(sessionId, transmitter);
        session.Begin();

        LogSession.session = session;
    }