/// <summary> /// DONT USE THIS METHOD. UNITY INTERNAL MONOBEHAVIOUR. /// </summary> public void Start() { switch (traceFormat) { case "json": this.traceFormatter = new SimpleJsonFormat(); break; case "xapi": this.traceFormatter = new XApiFormat(); break; default: this.traceFormatter = new DefaultTraceFromat(); break; } filePath = GeneratePath(); rawFilePath = filePath + "Raw.csv"; switch (storageType) { case "net": filePath += "Pending"; mainStorage = new NetStorage(this, host, trackingCode); mainStorage.SetTracker(this); backupStorage = new LocalStorage(filePath); backupStorage.SetTracker(this); break; default: mainStorage = new LocalStorage(filePath); mainStorage.SetTracker(this); break; } this.startListener.SetTraceFormatter(this.traceFormatter); this.Connect(); this.nextFlush = flushInterval; UnityEngine.Object.DontDestroyOnLoad(this); }
public void Start() { switch (traceFormat) { case "json": this.traceFormatter = new SimpleJsonFormat (); break; case "xapi": this.traceFormatter = new XApiFormat (); break; default: this.traceFormatter = new DefaultTraceFromat (); break; } filePath = GeneratePath (); switch (storageType) { case "net": filePath += "Pending"; mainStorage = new NetStorage (this, host, trackingCode); mainStorage.SetTracker (this); backupStorage = new LocalStorage (filePath); backupStorage.SetTracker (this); break; default: mainStorage = new LocalStorage (filePath); mainStorage.SetTracker (this); break; } this.startListener.SetTraceFormatter (this.traceFormatter); this.Connect (); this.nextFlush = flushInterval; UnityEngine.Object.DontDestroyOnLoad (this); }