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; }
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; }